forked from martinvl/maps-arcade
-
Notifications
You must be signed in to change notification settings - Fork 0
/
problem1.json
37 lines (37 loc) · 3.18 KB
/
problem1.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
"id":"problem1",
"precode":{
"python":{
"headPath":"problem1/python/head",
"tailPath":"problem1/python/tail",
"srcPath":"solver.py",
"binPath":"solver.py"
},
"java":{
"headPath":"problem1/java/head",
"tailPath":"problem1/java/tail",
"srcPath":"Solver.java",
"binPath":"Solver"
},
"c":{
"headPath":"problem1/c/head",
"tailPath":"problem1/c/tail",
"srcPath":"solver.c",
"binPath":"solver"
}
},
"testdataPath":"problem1/testdata",
"timeout":2000,
"tests":
[{"inputPath": "test1.in", "optional": false, "solutionPath": "test1.ans", "id": "test1"}, {"inputPath": "test2.in", "optional": false, "solutionPath": "test2.ans", "id": "test2"}, {"inputPath": "test3.in", "optional": false, "solutionPath": "test3.ans", "id": "test3"}, {"inputPath": "test4.in", "optional": false, "solutionPath": "test4.ans", "id": "test4"}, {"inputPath": "test5.in", "optional": false, "solutionPath": "test5.ans", "id": "test5"}, {"inputPath": "test6.in", "optional": false, "solutionPath": "test6.ans", "id": "test6"}, {"inputPath": "test7.in", "optional": false, "solutionPath": "test7.ans", "id": "test7"}, {"inputPath": "test8.in", "optional": false, "solutionPath": "test8.ans", "id": "test8"}, {"inputPath": "test9.in", "optional": false, "solutionPath": "test9.ans", "id": "test9"}, {"inputPath": "test10.in", "optional": false, "solutionPath": "test10.ans", "id": "test10"}, {"inputPath": "test11.in", "optional": false, "solutionPath": "test11.ans", "id": "test11"}, {"inputPath": "test12.in", "optional": false, "solutionPath": "test12.ans", "id": "test12"}, {"inputPath": "test13.in", "optional": false, "solutionPath": "test13.ans", "id": "test13"}, {"inputPath": "test14.in", "optional": false, "solutionPath": "test14.ans", "id": "test14"}, {"inputPath": "test15.in", "optional": false, "solutionPath": "test15.ans", "id": "test15"}, {"inputPath": "test16.in", "optional": false, "solutionPath": "test16.ans", "id": "test16"}, {"inputPath": "test17.in", "optional": true, "solutionPath": "test17.ans", "id": "test17"}, {"inputPath": "test18.in", "optional": true, "solutionPath": "test18.ans", "id": "test18"}, {"inputPath": "test19.in", "optional": true, "solutionPath": "test19.ans", "id": "test19"}, {"inputPath": "test20.in", "optional": true, "solutionPath": "test20.ans", "id": "test20"}],
"codingTimeout": 90,
"pythonDefault":"def D(n):",
"javaDefault":"public static int D(int n) {\n}",
"cDefault":"int D(int n)\n{\n}",
"description":"Implement the function <i>D</i> which for a given integer <i>n</i>, returns <i>D<sub>n</sub></i> where<br/><i>D<sub>0</sub></i> = 1<br/><i>D<sub>1</sub></i> = 1<br/> ⁞<br/><i>D<sub>n</sub></i> = <i>D<sub>n - 1</sub></i> - <i>D<sub>n - 2</sub></i>",
"definition":"<i>D<sub>0</sub></i> = 1<br/><i>D<sub>1</sub></i> = 1<br/> ⁞<br/><i>D<sub>n</sub></i> = <i>D<sub>n - 1</sub></i> - <i>D<sub>n - 2</sub></i>",
"examples":[
"If <i>n</i> = 10, then <i>D</i> should return -1.",
"If <i>n</i> = 20, then <i>D</i> should return 0."
]
}