diff --git a/hello-world/description.md b/hello-world/description.md new file mode 100644 index 0000000..efed3c9 --- /dev/null +++ b/hello-world/description.md @@ -0,0 +1 @@ +Use your favorite programming language to print `Hello, world!` to stdout! \ No newline at end of file diff --git a/hello-world/generator.py b/hello-world/generator.py new file mode 100644 index 0000000..c9936bc --- /dev/null +++ b/hello-world/generator.py @@ -0,0 +1,3 @@ +fin = open("case_number", "r") + +# Do nothing, as there is no input. \ No newline at end of file diff --git a/hello-world/grader.py b/hello-world/grader.py new file mode 100644 index 0000000..8814116 --- /dev/null +++ b/hello-world/grader.py @@ -0,0 +1,4 @@ +fin = open("program_output", "r") + +output = fin.read().strip() +print "OK" if output == "Hello, world!" else "FAIL" \ No newline at end of file diff --git a/hello-world/problem.yml b/hello-world/problem.yml new file mode 100644 index 0000000..0fce9e6 --- /dev/null +++ b/hello-world/problem.yml @@ -0,0 +1,11 @@ +author: mzhang +title: Hello, world! +hint: Having trouble? Check out our tutorial! +category: Programming +autogen: false +programming: true +value: 10 + +test_cases: 1 +time_limit: 1000 +memory_limit: 1024 \ No newline at end of file