| Task: | Stone game |
| Sender: | luukwin |
| Submission time: | 2025-09-01 17:46:06 +0300 |
| Language: | Python3 (PyPy3) |
| Status: | READY |
| Result: | WRONG ANSWER |
| test | verdict | time | |
|---|---|---|---|
| #1 | WRONG ANSWER | 0.04 s | details |
| #2 | WRONG ANSWER | 0.04 s | details |
| #3 | WRONG ANSWER | 0.04 s | details |
| #4 | WRONG ANSWER | 0.04 s | details |
| #5 | WRONG ANSWER | 0.04 s | details |
| #6 | WRONG ANSWER | 0.04 s | details |
| #7 | WRONG ANSWER | 0.04 s | details |
| #8 | WRONG ANSWER | 0.04 s | details |
| #9 | WRONG ANSWER | 0.04 s | details |
| #10 | WRONG ANSWER | 0.04 s | details |
| #11 | WRONG ANSWER | 0.04 s | details |
| #12 | WRONG ANSWER | 0.05 s | details |
| #13 | WRONG ANSWER | 0.04 s | details |
| #14 | WRONG ANSWER | 0.04 s | details |
| #15 | WRONG ANSWER | 0.04 s | details |
| #16 | WRONG ANSWER | 0.04 s | details |
| #17 | WRONG ANSWER | 0.04 s | details |
| #18 | WRONG ANSWER | 0.04 s | details |
| #19 | WRONG ANSWER | 0.04 s | details |
| #20 | WRONG ANSWER | 0.04 s | details |
| #21 | WRONG ANSWER | 0.04 s | details |
| #22 | WRONG ANSWER | 0.04 s | details |
| #23 | WRONG ANSWER | 0.04 s | details |
| #24 | WRONG ANSWER | 0.04 s | details |
| #25 | WRONG ANSWER | 0.04 s | details |
| #26 | WRONG ANSWER | 0.04 s | details |
| #27 | WRONG ANSWER | 0.04 s | details |
| #28 | WRONG ANSWER | 0.04 s | details |
| #29 | WRONG ANSWER | 0.04 s | details |
| #30 | WRONG ANSWER | 0.04 s | details |
| #31 | WRONG ANSWER | 0.04 s | details |
| #32 | WRONG ANSWER | 0.05 s | details |
| #33 | WRONG ANSWER | 0.04 s | details |
| #34 | WRONG ANSWER | 0.04 s | details |
| #35 | WRONG ANSWER | 0.04 s | details |
| #36 | WRONG ANSWER | 0.04 s | details |
| #37 | WRONG ANSWER | 0.04 s | details |
| #38 | WRONG ANSWER | 0.04 s | details |
| #39 | WRONG ANSWER | 0.04 s | details |
| #40 | WRONG ANSWER | 0.04 s | details |
| #41 | WRONG ANSWER | 0.05 s | details |
| #42 | WRONG ANSWER | 0.06 s | details |
| #43 | WRONG ANSWER | 0.04 s | details |
| #44 | WRONG ANSWER | 0.04 s | details |
| #45 | WRONG ANSWER | 0.05 s | details |
| #46 | WRONG ANSWER | 0.04 s | details |
| #47 | WRONG ANSWER | 0.04 s | details |
| #48 | WRONG ANSWER | 0.04 s | details |
| #49 | WRONG ANSWER | 0.04 s | details |
| #50 | WRONG ANSWER | 0.04 s | details |
| #51 | WRONG ANSWER | 0.04 s | details |
| #52 | WRONG ANSWER | 0.04 s | details |
| #53 | WRONG ANSWER | 0.04 s | details |
| #54 | WRONG ANSWER | 0.04 s | details |
| #55 | WRONG ANSWER | 0.05 s | details |
| #56 | WRONG ANSWER | 0.04 s | details |
| #57 | WRONG ANSWER | 0.04 s | details |
| #58 | WRONG ANSWER | 0.04 s | details |
| #59 | WRONG ANSWER | 0.04 s | details |
| #60 | WRONG ANSWER | 0.04 s | details |
Code
# x 0 you win
# 1 1 you lose
# x 1 you win if x != 1 because you do 1 1
# 2 2 you lose because 2 1
# x 2 you win because 2 2 if x != 2
# 3 3 you lose because 3 2
# x 3 you win because 3 3 if x !<
# 4 4 you lose because 4 3
# x 4 you win because 4 4 if x != 4
# if x == y you lose or if
input = [int(x) for x in input().split()]
x = input[0]
y = input[1]
UoTurn = True
while x != 0 and y != 0:
if x == 0 or y == 0:
y = 0
x = 0
if x != y:
if x > y: x = y
else: y = x
else:
x += 1
y -= 1
print(x, y, UoTurn)
UoTurn = not UoTurn
if not UoTurn: print("Maija")
else: print("Uolevi")Test details
Test 1
Verdict: WRONG ANSWER
| input |
|---|
| 3 4 |
| correct output |
|---|
| Uolevi |
| user output |
|---|
| 3 3 True 4 2 False 2 2 True 3 1 False 1 1 True ... |
Test 2
Verdict: WRONG ANSWER
| input |
|---|
| 5 5 |
| correct output |
|---|
| Maija |
| user output |
|---|
| 6 4 True 4 4 False 5 3 True 3 3 False 4 2 True ... Truncated |
Test 3
Verdict: WRONG ANSWER
| input |
|---|
| 1 1 |
| correct output |
|---|
| Maija |
| user output |
|---|
| 2 0 True Maija |
Test 4
Verdict: WRONG ANSWER
| input |
|---|
| 1 4 |
| correct output |
|---|
| Uolevi |
| user output |
|---|
| 1 1 True 2 0 False Uolevi |
Test 5
Verdict: WRONG ANSWER
| input |
|---|
| 5 3 |
| correct output |
|---|
| Uolevi |
| user output |
|---|
| 3 3 True 4 2 False 2 2 True 3 1 False 1 1 True ... |
Test 6
Verdict: WRONG ANSWER
| input |
|---|
| 1 1 |
| correct output |
|---|
| Maija |
| user output |
|---|
| 2 0 True Maija |
Test 7
Verdict: WRONG ANSWER
| input |
|---|
| 5 2 |
| correct output |
|---|
| Uolevi |
| user output |
|---|
| 2 2 True 3 1 False 1 1 True 2 0 False Uolevi |
Test 8
Verdict: WRONG ANSWER
| input |
|---|
| 2 2 |
| correct output |
|---|
| Maija |
| user output |
|---|
| 3 1 True 1 1 False 2 0 True Maija |
Test 9
Verdict: WRONG ANSWER
| input |
|---|
| 1 5 |
| correct output |
|---|
| Uolevi |
| user output |
|---|
| 1 1 True 2 0 False Uolevi |
Test 10
Verdict: WRONG ANSWER
| input |
|---|
| 2 2 |
| correct output |
|---|
| Maija |
| user output |
|---|
| 3 1 True 1 1 False 2 0 True Maija |
Test 11
Verdict: WRONG ANSWER
| input |
|---|
| 6 8 |
| correct output |
|---|
| Uolevi |
| user output |
|---|
| 6 6 True 7 5 False 5 5 True 6 4 False 4 4 True ... Truncated |
Test 12
Verdict: WRONG ANSWER
| input |
|---|
| 10 10 |
| correct output |
|---|
| Maija |
| user output |
|---|
| 11 9 True 9 9 False 10 8 True 8 8 False 9 7 True ... Truncated |
Test 13
Verdict: WRONG ANSWER
| input |
|---|
| 2 2 |
| correct output |
|---|
| Maija |
| user output |
|---|
| 3 1 True 1 1 False 2 0 True Maija |
Test 14
Verdict: WRONG ANSWER
| input |
|---|
| 1 8 |
| correct output |
|---|
| Uolevi |
| user output |
|---|
| 1 1 True 2 0 False Uolevi |
Test 15
Verdict: WRONG ANSWER
| input |
|---|
| 10 6 |
| correct output |
|---|
| Uolevi |
| user output |
|---|
| 6 6 True 7 5 False 5 5 True 6 4 False 4 4 True ... Truncated |
Test 16
Verdict: WRONG ANSWER
| input |
|---|
| 1 1 |
| correct output |
|---|
| Maija |
| user output |
|---|
| 2 0 True Maija |
Test 17
Verdict: WRONG ANSWER
| input |
|---|
| 10 4 |
| correct output |
|---|
| Uolevi |
| user output |
|---|
| 4 4 True 5 3 False 3 3 True 4 2 False 2 2 True ... |
Test 18
Verdict: WRONG ANSWER
| input |
|---|
| 3 3 |
| correct output |
|---|
| Maija |
| user output |
|---|
| 4 2 True 2 2 False 3 1 True 1 1 False 2 0 True ... |
Test 19
Verdict: WRONG ANSWER
| input |
|---|
| 1 10 |
| correct output |
|---|
| Uolevi |
| user output |
|---|
| 1 1 True 2 0 False Uolevi |
Test 20
Verdict: WRONG ANSWER
| input |
|---|
| 4 4 |
| correct output |
|---|
| Maija |
| user output |
|---|
| 5 3 True 3 3 False 4 2 True 2 2 False 3 1 True ... |
Test 21
Verdict: WRONG ANSWER
| input |
|---|
| 60 72 |
| correct output |
|---|
| Uolevi |
| user output |
|---|
| 60 60 True 61 59 False 59 59 True 60 58 False 58 58 True ... Truncated |
Test 22
Verdict: WRONG ANSWER
| input |
|---|
| 100 100 |
| correct output |
|---|
| Maija |
| user output |
|---|
| 101 99 True 99 99 False 100 98 True 98 98 False 99 97 True ... Truncated |
Test 23
Verdict: WRONG ANSWER
| input |
|---|
| 19 19 |
| correct output |
|---|
| Maija |
| user output |
|---|
| 20 18 True 18 18 False 19 17 True 17 17 False 18 16 True ... Truncated |
Test 24
Verdict: WRONG ANSWER
| input |
|---|
| 8 71 |
| correct output |
|---|
| Uolevi |
| user output |
|---|
| 8 8 True 9 7 False 7 7 True 8 6 False 6 6 True ... Truncated |
Test 25
Verdict: WRONG ANSWER
| input |
|---|
| 91 55 |
| correct output |
|---|
| Uolevi |
| user output |
|---|
| 55 55 True 56 54 False 54 54 True 55 53 False 53 53 True ... Truncated |
Test 26
Verdict: WRONG ANSWER
| input |
|---|
| 6 6 |
| correct output |
|---|
| Maija |
| user output |
|---|
| 7 5 True 5 5 False 6 4 True 4 4 False 5 3 True ... Truncated |
Test 27
Verdict: WRONG ANSWER
| input |
|---|
| 95 34 |
| correct output |
|---|
| Uolevi |
| user output |
|---|
| 34 34 True 35 33 False 33 33 True 34 32 False 32 32 True ... Truncated |
Test 28
Verdict: WRONG ANSWER
| input |
|---|
| 23 23 |
| correct output |
|---|
| Maija |
| user output |
|---|
| 24 22 True 22 22 False 23 21 True 21 21 False 22 20 True ... Truncated |
Test 29
Verdict: WRONG ANSWER
| input |
|---|
| 2 97 |
| correct output |
|---|
| Uolevi |
| user output |
|---|
| 2 2 True 3 1 False 1 1 True 2 0 False Uolevi |
Test 30
Verdict: WRONG ANSWER
| input |
|---|
| 37 37 |
| correct output |
|---|
| Maija |
| user output |
|---|
| 38 36 True 36 36 False 37 35 True 35 35 False 36 34 True ... Truncated |
Test 31
Verdict: WRONG ANSWER
| input |
|---|
| 119 144 |
| correct output |
|---|
| Uolevi |
| user output |
|---|
| 119 119 True 120 118 False 118 118 True 119 117 False 117 117 True ... Truncated |
Test 32
Verdict: WRONG ANSWER
| input |
|---|
| 200 200 |
| correct output |
|---|
| Maija |
| user output |
|---|
| 201 199 True 199 199 False 200 198 True 198 198 False 199 197 True ... Truncated |
Test 33
Verdict: WRONG ANSWER
| input |
|---|
| 38 38 |
| correct output |
|---|
| Maija |
| user output |
|---|
| 39 37 True 37 37 False 38 36 True 36 36 False 37 35 True ... Truncated |
Test 34
Verdict: WRONG ANSWER
| input |
|---|
| 15 142 |
| correct output |
|---|
| Uolevi |
| user output |
|---|
| 15 15 True 16 14 False 14 14 True 15 13 False 13 13 True ... Truncated |
Test 35
Verdict: WRONG ANSWER
| input |
|---|
| 181 110 |
| correct output |
|---|
| Uolevi |
| user output |
|---|
| 110 110 True 111 109 False 109 109 True 110 108 False 108 108 True ... Truncated |
Test 36
Verdict: WRONG ANSWER
| input |
|---|
| 12 12 |
| correct output |
|---|
| Maija |
| user output |
|---|
| 13 11 True 11 11 False 12 10 True 10 10 False 11 9 True ... Truncated |
Test 37
Verdict: WRONG ANSWER
| input |
|---|
| 190 67 |
| correct output |
|---|
| Uolevi |
| user output |
|---|
| 67 67 True 68 66 False 66 66 True 67 65 False 65 65 True ... Truncated |
Test 38
Verdict: WRONG ANSWER
| input |
|---|
| 46 46 |
| correct output |
|---|
| Maija |
| user output |
|---|
| 47 45 True 45 45 False 46 44 True 44 44 False 45 43 True ... Truncated |
Test 39
Verdict: WRONG ANSWER
| input |
|---|
| 3 194 |
| correct output |
|---|
| Uolevi |
| user output |
|---|
| 3 3 True 4 2 False 2 2 True 3 1 False 1 1 True ... |
Test 40
Verdict: WRONG ANSWER
| input |
|---|
| 73 73 |
| correct output |
|---|
| Maija |
| user output |
|---|
| 74 72 True 72 72 False 73 71 True 71 71 False 72 70 True ... Truncated |
Test 41
Verdict: WRONG ANSWER
| input |
|---|
| 178 215 |
| correct output |
|---|
| Uolevi |
| user output |
|---|
| 178 178 True 179 177 False 177 177 True 178 176 False 176 176 True ... Truncated |
Test 42
Verdict: WRONG ANSWER
| input |
|---|
| 300 300 |
| correct output |
|---|
| Maija |
| user output |
|---|
| 301 299 True 299 299 False 300 298 True 298 298 False 299 297 True ... Truncated |
Test 43
Verdict: WRONG ANSWER
| input |
|---|
| 56 56 |
| correct output |
|---|
| Maija |
| user output |
|---|
| 57 55 True 55 55 False 56 54 True 54 54 False 55 53 True ... Truncated |
Test 44
Verdict: WRONG ANSWER
| input |
|---|
| 22 213 |
| correct output |
|---|
| Uolevi |
| user output |
|---|
| 22 22 True 23 21 False 21 21 True 22 20 False 20 20 True ... Truncated |
Test 45
Verdict: WRONG ANSWER
| input |
|---|
| 271 165 |
| correct output |
|---|
| Uolevi |
| user output |
|---|
| 165 165 True 166 164 False 164 164 True 165 163 False 163 163 True ... Truncated |
Test 46
Verdict: WRONG ANSWER
| input |
|---|
| 17 17 |
| correct output |
|---|
| Maija |
| user output |
|---|
| 18 16 True 16 16 False 17 15 True 15 15 False 16 14 True ... Truncated |
Test 47
Verdict: WRONG ANSWER
| input |
|---|
| 285 100 |
| correct output |
|---|
| Uolevi |
| user output |
|---|
| 100 100 True 101 99 False 99 99 True 100 98 False 98 98 True ... Truncated |
Test 48
Verdict: WRONG ANSWER
| input |
|---|
| 69 69 |
| correct output |
|---|
| Maija |
| user output |
|---|
| 70 68 True 68 68 False 69 67 True 67 67 False 68 66 True ... Truncated |
Test 49
Verdict: WRONG ANSWER
| input |
|---|
| 4 291 |
| correct output |
|---|
| Uolevi |
| user output |
|---|
| 4 4 True 5 3 False 3 3 True 4 2 False 2 2 True ... |
Test 50
Verdict: WRONG ANSWER
| input |
|---|
| 110 110 |
| correct output |
|---|
| Maija |
| user output |
|---|
| 111 109 True 109 109 False 110 108 True 108 108 False 109 107 True ... Truncated |
Test 51
Verdict: WRONG ANSWER
| input |
|---|
| 90 7 |
| correct output |
|---|
| Uolevi |
| user output |
|---|
| 7 7 True 8 6 False 6 6 True 7 5 False 5 5 True ... Truncated |
Test 52
Verdict: WRONG ANSWER
| input |
|---|
| 21 21 |
| correct output |
|---|
| Maija |
| user output |
|---|
| 22 20 True 20 20 False 21 19 True 19 19 False 20 18 True ... Truncated |
Test 53
Verdict: WRONG ANSWER
| input |
|---|
| 134 134 |
| correct output |
|---|
| Maija |
| user output |
|---|
| 135 133 True 133 133 False 134 132 True 132 132 False 133 131 True ... Truncated |
Test 54
Verdict: WRONG ANSWER
| input |
|---|
| 183 72 |
| correct output |
|---|
| Uolevi |
| user output |
|---|
| 72 72 True 73 71 False 71 71 True 72 70 False 70 70 True ... Truncated |
Test 55
Verdict: WRONG ANSWER
| input |
|---|
| 277 232 |
| correct output |
|---|
| Uolevi |
| user output |
|---|
| 232 232 True 233 231 False 231 231 True 232 230 False 230 230 True ... Truncated |
Test 56
Verdict: WRONG ANSWER
| input |
|---|
| 245 54 |
| correct output |
|---|
| Uolevi |
| user output |
|---|
| 54 54 True 55 53 False 53 53 True 54 52 False 52 52 True ... Truncated |
Test 57
Verdict: WRONG ANSWER
| input |
|---|
| 98 98 |
| correct output |
|---|
| Maija |
| user output |
|---|
| 99 97 True 97 97 False 98 96 True 96 96 False 97 95 True ... Truncated |
Test 58
Verdict: WRONG ANSWER
| input |
|---|
| 55 55 |
| correct output |
|---|
| Maija |
| user output |
|---|
| 56 54 True 54 54 False 55 53 True 53 53 False 54 52 True ... Truncated |
Test 59
Verdict: WRONG ANSWER
| input |
|---|
| 23 152 |
| correct output |
|---|
| Uolevi |
| user output |
|---|
| 23 23 True 24 22 False 22 22 True 23 21 False 21 21 True ... Truncated |
Test 60
Verdict: WRONG ANSWER
| input |
|---|
| 130 130 |
| correct output |
|---|
| Maija |
| user output |
|---|
| 131 129 True 129 129 False 130 128 True 128 128 False 129 127 True ... Truncated |
