CSES - Aalto Competitive Programming 2024 - wk1 - Mon - Results
Submission details
Task:Stone game
Sender:eyong002
Submission time:2024-09-02 17:05:17 +0300
Language:C++ (C++11)
Status:READY
Result:
Test results
testverdicttime
#1ACCEPTED0.00 sdetails
#20.00 sdetails
#3ACCEPTED0.00 sdetails
#4ACCEPTED0.00 sdetails
#5ACCEPTED0.00 sdetails
#6ACCEPTED0.00 sdetails
#7ACCEPTED0.00 sdetails
#80.00 sdetails
#9ACCEPTED0.00 sdetails
#100.00 sdetails
#11ACCEPTED0.00 sdetails
#120.00 sdetails
#130.00 sdetails
#14ACCEPTED0.00 sdetails
#15ACCEPTED0.00 sdetails
#16ACCEPTED0.00 sdetails
#17ACCEPTED0.00 sdetails
#180.00 sdetails
#19ACCEPTED0.00 sdetails
#200.00 sdetails
#21ACCEPTED0.00 sdetails
#220.00 sdetails
#230.00 sdetails
#24ACCEPTED0.00 sdetails
#25ACCEPTED0.00 sdetails
#260.00 sdetails
#27ACCEPTED0.00 sdetails
#280.00 sdetails
#29ACCEPTED0.00 sdetails
#300.00 sdetails
#31ACCEPTED0.00 sdetails
#320.00 sdetails
#330.00 sdetails
#34ACCEPTED0.00 sdetails
#35ACCEPTED0.00 sdetails
#360.00 sdetails
#37ACCEPTED0.00 sdetails
#380.00 sdetails
#39ACCEPTED0.00 sdetails
#400.00 sdetails
#41ACCEPTED0.00 sdetails
#420.00 sdetails
#430.00 sdetails
#44ACCEPTED0.00 sdetails
#45ACCEPTED0.00 sdetails
#460.00 sdetails
#47ACCEPTED0.00 sdetails
#480.00 sdetails
#49ACCEPTED0.00 sdetails
#500.00 sdetails
#51ACCEPTED0.00 sdetails
#520.00 sdetails
#530.00 sdetails
#54ACCEPTED0.00 sdetails
#55ACCEPTED0.00 sdetails
#56ACCEPTED0.00 sdetails
#570.00 sdetails
#580.00 sdetails
#59ACCEPTED0.00 sdetails
#600.00 sdetails

Code

#include <iostream>  
#include <cstring> 
using namespace std; 

int main() {
    char str[100];   
    cin.getline(str, 100);
    char *ptr;
    ptr = strtok(str, " "); 
    int A, B;

    A = stoi(ptr);
    ptr = strtok (NULL, " ");  
    B = stoi(ptr);
    
    if (A == 0 && B == 0){
        cout << "Maija";
    } else if (A == 0 || B == 0){
        cout << "Uolevi";
    } else if (A == 1 && B == 1){
        cout << "Maija";
    } else if (A == 1 || B == 1){
        cout << "Uolevi";
    } else {
        cout << "Uolevi";
    }
    
    return 0;
}

Test details

Test 1

Verdict: ACCEPTED

input
3 4

correct output
Uolevi

user output
Uolevi

Test 2

Verdict:

input
5 5

correct output
Maija

user output
Uolevi

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

input
5 3

correct output
Uolevi

user output
Uolevi

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:

input
2 2

correct output
Maija

user output
Uolevi

Test 9

Verdict: ACCEPTED

input
1 5

correct output
Uolevi

user output
Uolevi

Test 10

Verdict:

input
2 2

correct output
Maija

user output
Uolevi

Test 11

Verdict: ACCEPTED

input
6 8

correct output
Uolevi

user output
Uolevi

Test 12

Verdict:

input
10 10

correct output
Maija

user output
Uolevi

Test 13

Verdict:

input
2 2

correct output
Maija

user output
Uolevi

Test 14

Verdict: ACCEPTED

input
1 8

correct output
Uolevi

user output
Uolevi

Test 15

Verdict: ACCEPTED

input
10 6

correct output
Uolevi

user output
Uolevi

Test 16

Verdict: ACCEPTED

input
1 1

correct output
Maija

user output
Maija

Test 17

Verdict: ACCEPTED

input
10 4

correct output
Uolevi

user output
Uolevi

Test 18

Verdict:

input
3 3

correct output
Maija

user output
Uolevi

Test 19

Verdict: ACCEPTED

input
1 10

correct output
Uolevi

user output
Uolevi

Test 20

Verdict:

input
4 4

correct output
Maija

user output
Uolevi

Test 21

Verdict: ACCEPTED

input
60 72

correct output
Uolevi

user output
Uolevi

Test 22

Verdict:

input
100 100

correct output
Maija

user output
Uolevi

Test 23

Verdict:

input
19 19

correct output
Maija

user output
Uolevi

Test 24

Verdict: ACCEPTED

input
8 71

correct output
Uolevi

user output
Uolevi

Test 25

Verdict: ACCEPTED

input
91 55

correct output
Uolevi

user output
Uolevi

Test 26

Verdict:

input
6 6

correct output
Maija

user output
Uolevi

Test 27

Verdict: ACCEPTED

input
95 34

correct output
Uolevi

user output
Uolevi

Test 28

Verdict:

input
23 23

correct output
Maija

user output
Uolevi

Test 29

Verdict: ACCEPTED

input
2 97

correct output
Uolevi

user output
Uolevi

Test 30

Verdict:

input
37 37

correct output
Maija

user output
Uolevi

Test 31

Verdict: ACCEPTED

input
119 144

correct output
Uolevi

user output
Uolevi

Test 32

Verdict:

input
200 200

correct output
Maija

user output
Uolevi

Test 33

Verdict:

input
38 38

correct output
Maija

user output
Uolevi

Test 34

Verdict: ACCEPTED

input
15 142

correct output
Uolevi

user output
Uolevi

Test 35

Verdict: ACCEPTED

input
181 110

correct output
Uolevi

user output
Uolevi

Test 36

Verdict:

input
12 12

correct output
Maija

user output
Uolevi

Test 37

Verdict: ACCEPTED

input
190 67

correct output
Uolevi

user output
Uolevi

Test 38

Verdict:

input
46 46

correct output
Maija

user output
Uolevi

Test 39

Verdict: ACCEPTED

input
3 194

correct output
Uolevi

user output
Uolevi

Test 40

Verdict:

input
73 73

correct output
Maija

user output
Uolevi

Test 41

Verdict: ACCEPTED

input
178 215

correct output
Uolevi

user output
Uolevi

Test 42

Verdict:

input
300 300

correct output
Maija

user output
Uolevi

Test 43

Verdict:

input
56 56

correct output
Maija

user output
Uolevi

Test 44

Verdict: ACCEPTED

input
22 213

correct output
Uolevi

user output
Uolevi

Test 45

Verdict: ACCEPTED

input
271 165

correct output
Uolevi

user output
Uolevi

Test 46

Verdict:

input
17 17

correct output
Maija

user output
Uolevi

Test 47

Verdict: ACCEPTED

input
285 100

correct output
Uolevi

user output
Uolevi

Test 48

Verdict:

input
69 69

correct output
Maija

user output
Uolevi

Test 49

Verdict: ACCEPTED

input
4 291

correct output
Uolevi

user output
Uolevi

Test 50

Verdict:

input
110 110

correct output
Maija

user output
Uolevi

Test 51

Verdict: ACCEPTED

input
90 7

correct output
Uolevi

user output
Uolevi

Test 52

Verdict:

input
21 21

correct output
Maija

user output
Uolevi

Test 53

Verdict:

input
134 134

correct output
Maija

user output
Uolevi

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:

input
98 98

correct output
Maija

user output
Uolevi

Test 58

Verdict:

input
55 55

correct output
Maija

user output
Uolevi

Test 59

Verdict: ACCEPTED

input
23 152

correct output
Uolevi

user output
Uolevi

Test 60

Verdict:

input
130 130

correct output
Maija

user output
Uolevi