CSES - Aalto Competitive Programming 2024 - wk1 - Mon - Results
Submission details
Task:Stone game
Sender:Nikoje
Submission time:2024-09-02 17:45:07 +0300
Language:C++ (C++11)
Status:READY
Result:
Test results
testverdicttime
#10.00 sdetails
#2ACCEPTED0.00 sdetails
#3ACCEPTED0.00 sdetails
#40.00 sdetails
#50.00 sdetails
#6ACCEPTED0.00 sdetails
#7ACCEPTED0.00 sdetails
#8ACCEPTED0.00 sdetails
#90.00 sdetails
#10ACCEPTED0.00 sdetails
#110.00 sdetails
#12ACCEPTED0.00 sdetails
#13ACCEPTED0.00 sdetails
#140.00 sdetails
#150.00 sdetails
#16ACCEPTED0.00 sdetails
#170.00 sdetails
#18ACCEPTED0.00 sdetails
#190.00 sdetails
#20ACCEPTED0.00 sdetails
#210.00 sdetails
#22ACCEPTED0.00 sdetails
#23ACCEPTED0.00 sdetails
#240.00 sdetails
#250.00 sdetails
#26ACCEPTED0.00 sdetails
#27ACCEPTED0.00 sdetails
#28ACCEPTED0.00 sdetails
#290.00 sdetails
#30ACCEPTED0.00 sdetails
#310.00 sdetails
#32ACCEPTED0.00 sdetails
#33ACCEPTED0.00 sdetails
#340.00 sdetails
#35ACCEPTED0.00 sdetails
#36ACCEPTED0.00 sdetails
#37ACCEPTED0.00 sdetails
#38ACCEPTED0.00 sdetails
#390.00 sdetails
#40ACCEPTED0.00 sdetails
#410.00 sdetails
#42ACCEPTED0.00 sdetails
#43ACCEPTED0.00 sdetails
#440.00 sdetails
#450.00 sdetails
#46ACCEPTED0.00 sdetails
#47ACCEPTED0.00 sdetails
#48ACCEPTED0.00 sdetails
#490.00 sdetails
#50ACCEPTED0.00 sdetails
#51ACCEPTED0.00 sdetails
#52ACCEPTED0.00 sdetails
#53ACCEPTED0.00 sdetails
#54ACCEPTED0.00 sdetails
#55ACCEPTED0.00 sdetails
#56ACCEPTED0.00 sdetails
#57ACCEPTED0.00 sdetails
#58ACCEPTED0.00 sdetails
#590.00 sdetails
#60ACCEPTED0.00 sdetails

Code

#include <iostream>
using namespace std;
int main() {
    int a, b;
    cin >> a >> b;
    int diff = a - b;
    if (diff == 0) {
        cout << "Maija";
    }
    else if (diff % 2 == 1) {
        cout << "Uolevi";
    }
    else {
        cout << "Draw";
    }
    
}

Test details

Test 1

Verdict:

input
3 4

correct output
Uolevi

user output
Draw

Test 2

Verdict: ACCEPTED

input
5 5

correct output
Maija

user output
Maija

Test 3

Verdict: ACCEPTED

input
1 1

correct output
Maija

user output
Maija

Test 4

Verdict:

input
1 4

correct output
Uolevi

user output
Draw

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:

input
1 5

correct output
Uolevi

user output
Draw

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: ACCEPTED

input
10 10

correct output
Maija

user output
Maija

Test 13

Verdict: ACCEPTED

input
2 2

correct output
Maija

user output
Maija

Test 14

Verdict:

input
1 8

correct output
Uolevi

user output
Draw

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: ACCEPTED

input
3 3

correct output
Maija

user output
Maija

Test 19

Verdict:

input
1 10

correct output
Uolevi

user output
Draw

Test 20

Verdict: ACCEPTED

input
4 4

correct output
Maija

user output
Maija

Test 21

Verdict:

input
60 72

correct output
Uolevi

user output
Draw

Test 22

Verdict: ACCEPTED

input
100 100

correct output
Maija

user output
Maija

Test 23

Verdict: ACCEPTED

input
19 19

correct output
Maija

user output
Maija

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: ACCEPTED

input
6 6

correct output
Maija

user output
Maija

Test 27

Verdict: ACCEPTED

input
95 34

correct output
Uolevi

user output
Uolevi

Test 28

Verdict: ACCEPTED

input
23 23

correct output
Maija

user output
Maija

Test 29

Verdict:

input
2 97

correct output
Uolevi

user output
Draw

Test 30

Verdict: ACCEPTED

input
37 37

correct output
Maija

user output
Maija

Test 31

Verdict:

input
119 144

correct output
Uolevi

user output
Draw

Test 32

Verdict: ACCEPTED

input
200 200

correct output
Maija

user output
Maija

Test 33

Verdict: ACCEPTED

input
38 38

correct output
Maija

user output
Maija

Test 34

Verdict:

input
15 142

correct output
Uolevi

user output
Draw

Test 35

Verdict: ACCEPTED

input
181 110

correct output
Uolevi

user output
Uolevi

Test 36

Verdict: ACCEPTED

input
12 12

correct output
Maija

user output
Maija

Test 37

Verdict: ACCEPTED

input
190 67

correct output
Uolevi

user output
Uolevi

Test 38

Verdict: ACCEPTED

input
46 46

correct output
Maija

user output
Maija

Test 39

Verdict:

input
3 194

correct output
Uolevi

user output
Draw

Test 40

Verdict: ACCEPTED

input
73 73

correct output
Maija

user output
Maija

Test 41

Verdict:

input
178 215

correct output
Uolevi

user output
Draw

Test 42

Verdict: ACCEPTED

input
300 300

correct output
Maija

user output
Maija

Test 43

Verdict: ACCEPTED

input
56 56

correct output
Maija

user output
Maija

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: ACCEPTED

input
17 17

correct output
Maija

user output
Maija

Test 47

Verdict: ACCEPTED

input
285 100

correct output
Uolevi

user output
Uolevi

Test 48

Verdict: ACCEPTED

input
69 69

correct output
Maija

user output
Maija

Test 49

Verdict:

input
4 291

correct output
Uolevi

user output
Draw

Test 50

Verdict: ACCEPTED

input
110 110

correct output
Maija

user output
Maija

Test 51

Verdict: ACCEPTED

input
90 7

correct output
Uolevi

user output
Uolevi

Test 52

Verdict: ACCEPTED

input
21 21

correct output
Maija

user output
Maija

Test 53

Verdict: ACCEPTED

input
134 134

correct output
Maija

user output
Maija

Test 54

Verdict: ACCEPTED

input
183 72

correct output
Uolevi

user output
Uolevi

Test 55

Verdict: ACCEPTED

input
277 232

correct output
Uolevi

user output
Uolevi

Test 56

Verdict: ACCEPTED

input
245 54

correct output
Uolevi

user output
Uolevi

Test 57

Verdict: ACCEPTED

input
98 98

correct output
Maija

user output
Maija

Test 58

Verdict: ACCEPTED

input
55 55

correct output
Maija

user output
Maija

Test 59

Verdict:

input
23 152

correct output
Uolevi

user output
Draw

Test 60

Verdict: ACCEPTED

input
130 130

correct output
Maija

user output
Maija