From d7dc20e8dc801f336d08650c885eb210befa522f Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Mon, 31 Oct 2016 16:13:47 -0500 Subject: [PATCH] Is this right? --- hello-world/description.md | 1 + hello-world/generator.py | 3 +++ hello-world/grader.py | 4 ++++ hello-world/problem.yml | 11 +++++++++++ 4 files changed, 19 insertions(+) create mode 100644 hello-world/description.md create mode 100644 hello-world/generator.py create mode 100644 hello-world/grader.py create mode 100644 hello-world/problem.yml 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