Is this right?
This commit is contained in:
parent
2fb5d78d81
commit
d7dc20e8dc
4 changed files with 19 additions and 0 deletions
1
hello-world/description.md
Normal file
1
hello-world/description.md
Normal file
|
@ -0,0 +1 @@
|
|||
Use your favorite programming language to print `Hello, world!` to stdout!
|
3
hello-world/generator.py
Normal file
3
hello-world/generator.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
fin = open("case_number", "r")
|
||||
|
||||
# Do nothing, as there is no input.
|
4
hello-world/grader.py
Normal file
4
hello-world/grader.py
Normal file
|
@ -0,0 +1,4 @@
|
|||
fin = open("program_output", "r")
|
||||
|
||||
output = fin.read().strip()
|
||||
print "OK" if output == "Hello, world!" else "FAIL"
|
11
hello-world/problem.yml
Normal file
11
hello-world/problem.yml
Normal file
|
@ -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
|
Loading…
Reference in a new issue