CSES - Aalto Competitive Programming 2024 - wk1 - Mon - Results
Submission details
Task:Stone game
Sender:Rafal
Submission time:2024-09-02 17:03:13 +0300
Language:Python3 (PyPy3)
Status:READY
Result:
Test results
testverdicttime
#10.04 sdetails
#20.04 sdetails
#3ACCEPTED0.04 sdetails
#4ACCEPTED0.04 sdetails
#50.04 sdetails
#6ACCEPTED0.04 sdetails
#7ACCEPTED0.04 sdetails
#8ACCEPTED0.04 sdetails
#9ACCEPTED0.04 sdetails
#10ACCEPTED0.04 sdetails
#110.04 sdetails
#120.04 sdetails
#13ACCEPTED0.04 sdetails
#14ACCEPTED0.04 sdetails
#150.04 sdetails
#16ACCEPTED0.04 sdetails
#170.04 sdetails
#180.04 sdetails
#19ACCEPTED0.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
#29ACCEPTED0.04 sdetails
#300.04 sdetails
#310.04 sdetails
#320.04 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.04 sdetails
#420.04 sdetails
#430.04 sdetails
#440.04 sdetails
#450.04 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.04 sdetails
#560.04 sdetails
#570.04 sdetails
#580.04 sdetails
#590.04 sdetails
#600.04 sdetails

Code

a = input().split(" ")

A = int(a[0])
B = int(a[1])

if A == 0 and B == 0:
    print("Maija")
elif A == 0 and B != 0:
    print("Uolevi")
elif A != 0 and B == 0:
    print("Uolevi")
elif A == 1 and B == 1:
    print("Maija")
elif A == 1 and B != 1:
    print("Uolevi")
elif A != 1 and B == 1:
    print("Uolevi")

elif A == 2 and B == 2:
    print("Maija")
elif A == 2 and B != 2:
    print("Uolevi")
elif A != 2 and B == 2:
    print("Uolevi")


else:
    print("Draw")

Test details

Test 1

Verdict:

input
3 4

correct output
Uolevi

user output
Draw

Test 2

Verdict:

input
5 5

correct output
Maija

user output
Draw

Test 3

Verdict: ACCEPTED

input
1 1

correct output
Maija

user output
Maija

Test 4

Verdict: ACCEPTED

input
1 4

correct output
Uolevi

user output
Uolevi

Test 5

Verdict:

input
5 3

correct output
Uolevi

user output
Draw

Test 6

Verdict: ACCEPTED

input
1 1

correct output
Maija

user output
Maija

Test 7

Verdict: ACCEPTED

input
5 2

correct output
Uolevi

user output
Uolevi

Test 8

Verdict: ACCEPTED

input
2 2

correct output
Maija

user output
Maija

Test 9

Verdict: ACCEPTED

input
1 5

correct output
Uolevi

user output
Uolevi

Test 10

Verdict: ACCEPTED

input
2 2

correct output
Maija

user output
Maija

Test 11

Verdict:

input
6 8

correct output
Uolevi

user output
Draw

Test 12

Verdict:

input
10 10

correct output
Maija

user output
Draw

Test 13

Verdict: ACCEPTED

input
2 2

correct output
Maija

user output
Maija

Test 14

Verdict: ACCEPTED

input
1 8

correct output
Uolevi

user output
Uolevi

Test 15

Verdict:

input
10 6

correct output
Uolevi

user output
Draw

Test 16

Verdict: ACCEPTED

input
1 1

correct output
Maija

user output
Maija

Test 17

Verdict:

input
10 4

correct output
Uolevi

user output
Draw

Test 18

Verdict:

input
3 3

correct output
Maija

user output
Draw

Test 19

Verdict: ACCEPTED

input
1 10

correct output
Uolevi

user output
Uolevi

Test 20

Verdict:

input
4 4

correct output
Maija

user output
Draw

Test 21

Verdict:

input
60 72

correct output
Uolevi

user output
Draw

Test 22

Verdict:

input
100 100

correct output
Maija

user output
Draw

Test 23

Verdict:

input
19 19

correct output
Maija

user output
Draw

Test 24

Verdict:

input
8 71

correct output
Uolevi

user output
Draw

Test 25

Verdict:

input
91 55

correct output
Uolevi

user output
Draw

Test 26

Verdict:

input
6 6

correct output
Maija

user output
Draw

Test 27

Verdict:

input
95 34

correct output
Uolevi

user output
Draw

Test 28

Verdict:

input
23 23

correct output
Maija

user output
Draw

Test 29

Verdict: ACCEPTED

input
2 97

correct output
Uolevi

user output
Uolevi

Test 30

Verdict:

input
37 37

correct output
Maija

user output
Draw

Test 31

Verdict:

input
119 144

correct output
Uolevi

user output
Draw

Test 32

Verdict:

input
200 200

correct output
Maija

user output
Draw

Test 33

Verdict:

input
38 38

correct output
Maija

user output
Draw

Test 34

Verdict:

input
15 142

correct output
Uolevi

user output
Draw

Test 35

Verdict:

input
181 110

correct output
Uolevi

user output
Draw

Test 36

Verdict:

input
12 12

correct output
Maija

user output
Draw

Test 37

Verdict:

input
190 67

correct output
Uolevi

user output
Draw

Test 38

Verdict:

input
46 46

correct output
Maija

user output
Draw

Test 39

Verdict:

input
3 194

correct output
Uolevi

user output
Draw

Test 40

Verdict:

input
73 73

correct output
Maija

user output
Draw

Test 41

Verdict:

input
178 215

correct output
Uolevi

user output
Draw

Test 42

Verdict:

input
300 300

correct output
Maija

user output
Draw

Test 43

Verdict:

input
56 56

correct output
Maija

user output
Draw

Test 44

Verdict:

input
22 213

correct output
Uolevi

user output
Draw

Test 45

Verdict:

input
271 165

correct output
Uolevi

user output
Draw

Test 46

Verdict:

input
17 17

correct output
Maija

user output
Draw

Test 47

Verdict:

input
285 100

correct output
Uolevi

user output
Draw

Test 48

Verdict:

input
69 69

correct output
Maija

user output
Draw

Test 49

Verdict:

input
4 291

correct output
Uolevi

user output
Draw

Test 50

Verdict:

input
110 110

correct output
Maija

user output
Draw

Test 51

Verdict:

input
90 7

correct output
Uolevi

user output
Draw

Test 52

Verdict:

input
21 21

correct output
Maija

user output
Draw

Test 53

Verdict:

input
134 134

correct output
Maija

user output
Draw

Test 54

Verdict:

input
183 72

correct output
Uolevi

user output
Draw

Test 55

Verdict:

input
277 232

correct output
Uolevi

user output
Draw

Test 56

Verdict:

input
245 54

correct output
Uolevi

user output
Draw

Test 57

Verdict:

input
98 98

correct output
Maija

user output
Draw

Test 58

Verdict:

input
55 55

correct output
Maija

user output
Draw

Test 59

Verdict:

input
23 152

correct output
Uolevi

user output
Draw

Test 60

Verdict:

input
130 130

correct output
Maija

user output
Draw