瀏覽代碼

Qual-a: skeleton for the program

Gildas Chabot 8 年之前
當前提交
06c286a19e
共有 3 個文件被更改,包括 22 次插入0 次删除
  1. 1 0
      .gitignore
  2. 15 0
      2017.0-QualificationRound/a.ProgressBar.py
  3. 6 0
      2017.0-QualificationRound/a.in

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
1
+*~

+ 15 - 0
2017.0-QualificationRound/a.ProgressBar.py

@@ -0,0 +1,15 @@
1
+
2
+def solve(S):
3
+    p, x, y = S
4
+    print("p={0}, x={1}, y={2}".format(p, x, y))
5
+    return 'black'
6
+
7
+if __name__ == "__main__":
8
+    import fileinput
9
+    f = fileinput.input()
10
+
11
+    T = int(f.readline())
12
+    for case in range(1, T+1):
13
+        S = [int(i) for i in f.readline().split()]
14
+        solution = solve(S)
15
+        print("Case #{0}: {1}".format(case, solution))

+ 6 - 0
2017.0-QualificationRound/a.in

@@ -0,0 +1,6 @@
1
+5
2
+0 55 55
3
+12 55 55
4
+13 55 55
5
+99 99 99
6
+87 20 40