Submission #5091192
Source Code Expand
H,W = map(int,input().split()) x = 1 if H%2 and W%2: print('First') print((H+1)//2, (W+1)//2, 0) x = 0 else: print('Second') while 1: a,b,c = map(int,input().split()) if a == -1: break print(H+1-a, W+1-b, c^x, flush=True)
Submission Info
Submission Time | |
---|---|
Task | C - Snukeと対戦! |
User | prd_xxx |
Language | Python (3.4.3) |
Score | 51 |
Code Size | 264 Byte |
Status | AC |
Exec Time | 32 ms |
Memory | 3524 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 51 / 51 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample-01.txt |
All | sample-01.txt, 01-01.txt, 01-02.txt, 01-03.txt, 01-04.txt, 01-05.txt, 01-06.txt, 01-07.txt, 01-08.txt, 01-09.txt, 01-10.txt, 01-11.txt, 01-12.txt, 01-13.txt, 01-14.txt, 01-15.txt, 01-16.txt, sample-01.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
01-01.txt | AC | 19 ms | 3400 KB |
01-02.txt | AC | 19 ms | 3396 KB |
01-03.txt | AC | 19 ms | 3404 KB |
01-04.txt | AC | 18 ms | 3400 KB |
01-05.txt | AC | 32 ms | 3524 KB |
01-06.txt | AC | 31 ms | 3396 KB |
01-07.txt | AC | 31 ms | 3524 KB |
01-08.txt | AC | 30 ms | 3400 KB |
01-09.txt | AC | 19 ms | 3400 KB |
01-10.txt | AC | 19 ms | 3404 KB |
01-11.txt | AC | 19 ms | 3404 KB |
01-12.txt | AC | 21 ms | 3400 KB |
01-13.txt | AC | 21 ms | 3400 KB |
01-14.txt | AC | 20 ms | 3280 KB |
01-15.txt | AC | 25 ms | 3400 KB |
01-16.txt | AC | 26 ms | 3400 KB |
sample-01.txt | AC | 19 ms | 3400 KB |