QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#69817#3352. Marble MadnessjuwkimAC ✓28ms8424kbPython3165b2023-01-02 02:05:202023-01-02 02:05:23

Judging History

This is the latest submission verdict.

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-01-02 02:05:23]
  • Judged
  • Verdict: AC
  • Time: 28ms
  • Memory: 8424kb
  • [2023-01-02 02:05:20]
  • Submitted

answer

def g(): return [*map(int, input().split())]

for _ in range(int(input())):
    B, W = g()
    
    if W&1:
        print(0, 1)
    else:
        print(1, 0)

詳細信息

Test #1:

score: 100
Accepted
time: 28ms
memory: 8424kb

input:

60
1 0
0 1
2 0
0 2
1 1
2 1
1 2
0 50000
50000 0
50000 50000
10153 39998
317 24935
26982 10153
22843 28213
30031 35153
15044 36294
38052 37413
23066 5553
7872 4006
16402 21029
28212 32724
18274 26059
22322 3081
976 21705
13306 35045
30646 2263
36814 18753
35610 35578
20786 39308
39333 32903
8773 29334...

output:

1 0
0 1
1 0
1 0
0 1
0 1
1 0
1 0
1 0
1 0
1 0
0 1
0 1
0 1
0 1
1 0
0 1
0 1
1 0
0 1
1 0
0 1
0 1
0 1
0 1
0 1
0 1
1 0
1 0
0 1
1 0
0 1
0 1
0 1
1 0
0 1
0 1
0 1
1 0
0 1
0 1
0 1
0 1
0 1
1 0
0 1
1 0
1 0
1 0
0 1
0 1
1 0
0 1
0 1
1 0
1 0
0 1
0 1
1 0
0 1

result:

ok 120 numbers