Submission #4024471
Source Code Expand
def swap(a, b, k): if k % 2 == 0: if a % 2 == 1: a -= 1 return a/2, b+a/2 if b % 2 == 1: b -= 1 return int(a+b/2), int(b/2) if __name__ == '__main__': a, b, k = list(map(int, input().split())) for i in range(k): a,b = swap(a,b,i) print(int(a), int(b))
Submission Info
Submission Time | |
---|---|
Task | C - Align |
User | kitagawa1992 |
Language | PyPy3 (2.4.0) |
Score | 0 |
Code Size | 337 Byte |
Status | RE |
Exec Time | 178 ms |
Memory | 38512 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 400 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | s1.txt, s2.txt, s3.txt |
All | 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, 10.txt, 11.txt, 12.txt, 13.txt, 14.txt, 15.txt, 16.txt, 17.txt, 18.txt, 19.txt, 20.txt, 21.txt, 22.txt, 23.txt, 24.txt, 25.txt, 26.txt, 27.txt, 28.txt, 29.txt, 30.txt, 31.txt, 32.txt, 33.txt, 34.txt, 35.txt, 36.txt, 37.txt, s1.txt, s2.txt, s3.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
01.txt | RE | 175 ms | 38512 KB |
02.txt | RE | 170 ms | 38256 KB |
03.txt | RE | 170 ms | 38256 KB |
04.txt | RE | 170 ms | 38256 KB |
05.txt | RE | 172 ms | 38256 KB |
06.txt | RE | 171 ms | 38256 KB |
07.txt | RE | 170 ms | 38256 KB |
08.txt | RE | 170 ms | 38256 KB |
09.txt | RE | 171 ms | 38256 KB |
10.txt | RE | 172 ms | 38256 KB |
11.txt | RE | 171 ms | 38256 KB |
12.txt | RE | 172 ms | 38256 KB |
13.txt | RE | 172 ms | 38256 KB |
14.txt | RE | 173 ms | 38256 KB |
15.txt | RE | 176 ms | 38256 KB |
16.txt | RE | 170 ms | 38256 KB |
17.txt | RE | 170 ms | 38256 KB |
18.txt | RE | 174 ms | 38256 KB |
19.txt | RE | 169 ms | 38256 KB |
20.txt | RE | 170 ms | 38256 KB |
21.txt | RE | 170 ms | 38256 KB |
22.txt | RE | 171 ms | 38256 KB |
23.txt | RE | 171 ms | 38256 KB |
24.txt | RE | 173 ms | 38256 KB |
25.txt | RE | 169 ms | 38256 KB |
26.txt | RE | 171 ms | 38256 KB |
27.txt | RE | 172 ms | 38256 KB |
28.txt | RE | 169 ms | 38256 KB |
29.txt | RE | 173 ms | 38256 KB |
30.txt | RE | 178 ms | 38256 KB |
31.txt | RE | 174 ms | 38256 KB |
32.txt | RE | 176 ms | 38256 KB |
33.txt | RE | 173 ms | 38256 KB |
34.txt | RE | 173 ms | 38256 KB |
35.txt | RE | 172 ms | 38256 KB |
36.txt | RE | 176 ms | 38256 KB |
37.txt | RE | 173 ms | 38256 KB |
s1.txt | RE | 176 ms | 38256 KB |
s2.txt | RE | 177 ms | 38256 KB |
s3.txt | RE | 173 ms | 38256 KB |