Submission details
Task:Stone game
Sender:luukwin
Submission time:2025-09-01 17:46:06 +0300
Language:Python3 (PyPy3)
Status:READY
Result:
Test results
testverdicttime
#10.04 sdetails
#20.04 sdetails
#30.04 sdetails
#40.04 sdetails
#50.04 sdetails
#60.04 sdetails
#70.04 sdetails
#80.04 sdetails
#90.04 sdetails
#100.04 sdetails
#110.04 sdetails
#120.05 sdetails
#130.04 sdetails
#140.04 sdetails
#150.04 sdetails
#160.04 sdetails
#170.04 sdetails
#180.04 sdetails
#190.04 sdetails
#200.04 sdetails
#210.04 sdetails
#220.04 sdetails
#230.04 sdetails
#240.04 sdetails
#250.04 sdetails
#260.04 sdetails
#270.04 sdetails
#280.04 sdetails
#290.04 sdetails
#300.04 sdetails
#310.04 sdetails
#320.05 sdetails
#330.04 sdetails
#340.04 sdetails
#350.04 sdetails
#360.04 sdetails
#370.04 sdetails
#380.04 sdetails
#390.04 sdetails
#400.04 sdetails
#410.05 sdetails
#420.06 sdetails
#430.04 sdetails
#440.04 sdetails
#450.05 sdetails
#460.04 sdetails
#470.04 sdetails
#480.04 sdetails
#490.04 sdetails
#500.04 sdetails
#510.04 sdetails
#520.04 sdetails
#530.04 sdetails
#540.04 sdetails
#550.05 sdetails
#560.04 sdetails
#570.04 sdetails
#580.04 sdetails
#590.04 sdetails
#600.04 sdetails

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:

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:

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:

input
1 1

correct output
Maija

user output
2 0 True
Maija

Test 4

Verdict:

input
1 4

correct output
Uolevi

user output
1 1 True
2 0 False
Uolevi

Test 5

Verdict:

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:

input
1 1

correct output
Maija

user output
2 0 True
Maija

Test 7

Verdict:

input
5 2

correct output
Uolevi

user output
2 2 True
3 1 False
1 1 True
2 0 False
Uolevi

Test 8

Verdict:

input
2 2

correct output
Maija

user output
3 1 True
1 1 False
2 0 True
Maija

Test 9

Verdict:

input
1 5

correct output
Uolevi

user output
1 1 True
2 0 False
Uolevi

Test 10

Verdict:

input
2 2

correct output
Maija

user output
3 1 True
1 1 False
2 0 True
Maija

Test 11

Verdict:

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:

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:

input
2 2

correct output
Maija

user output
3 1 True
1 1 False
2 0 True
Maija

Test 14

Verdict:

input
1 8

correct output
Uolevi

user output
1 1 True
2 0 False
Uolevi

Test 15

Verdict:

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:

input
1 1

correct output
Maija

user output
2 0 True
Maija

Test 17

Verdict:

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:

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:

input
1 10

correct output
Uolevi

user output
1 1 True
2 0 False
Uolevi

Test 20

Verdict:

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:

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:

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:

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:

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:

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:

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:

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:

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:

input
2 97

correct output
Uolevi

user output
2 2 True
3 1 False
1 1 True
2 0 False
Uolevi

Test 30

Verdict:

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:

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:

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:

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:

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:

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:

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:

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:

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:

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:

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:

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:

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:

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:

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:

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:

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:

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:

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:

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:

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:

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:

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:

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:

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:

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:

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:

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:

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:

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:

input
130 130

correct output
Maija

user output
131 129 True
129 129 False
130 128 True
128 128 False
129 127 True
...
Truncated