CSES - HIIT Open 2018 - Results
Submission details
Task:Alien Invasion
Sender:El Numero Uno
Submission time:2018-05-26 12:08:43
Language:C++
Status:READY
Result:
Test results
testverdicttime
#1ACCEPTED0.01 sdetails
#20.02 sdetails
#30.01 sdetails
#4ACCEPTED0.01 sdetails
#50.01 sdetails
#60.01 sdetails
#70.01 sdetails
#80.01 sdetails
#9ACCEPTED0.01 sdetails
#100.01 sdetails
#110.01 sdetails
#120.01 sdetails
#130.01 sdetails
#140.01 sdetails
#150.01 sdetails
#16ACCEPTED0.01 sdetails
#170.01 sdetails
#180.01 sdetails
#190.01 sdetails
#20ACCEPTED0.01 sdetails
#210.01 sdetails
#22ACCEPTED0.01 sdetails

Code

#include <iostream>
#include <sstream>
#include "stdio.h"

using namespace std;

int main() {
    string l;
    int n, c;

        c = 1;
        cin >> n;

            for (int i = 1; i < n/4 + 1; i++) {
                if (n % i == 0) c+=2;
            }
            if (c % 2 == 0) {
                printf("even\n");
            } else {
                printf("odd\n");
            }




    return 0;
}

Test details

Test 1

Verdict: ACCEPTED

input
1

correct output
odd

user output
odd

Test 2

Verdict:

input
2

correct output
even

user output
odd

Test 3

Verdict:

input
3

correct output
even

user output
odd

Test 4

Verdict: ACCEPTED

input
4

correct output
odd

user output
odd

Test 5

Verdict:

input
5

correct output
even

user output
odd

Test 6

Verdict:

input
6

correct output
even

user output
odd

Test 7

Verdict:

input
7

correct output
even

user output
odd

Test 8

Verdict:

input
8

correct output
even

user output
odd

Test 9

Verdict: ACCEPTED

input
9

correct output
odd

user output
odd

Test 10

Verdict:

input
10

correct output
even

user output
odd

Test 11

Verdict:

input
11

correct output
even

user output
odd

Test 12

Verdict:

input
12

correct output
even

user output
odd

Test 13

Verdict:

input
13

correct output
even

user output
odd

Test 14

Verdict:

input
14

correct output
even

user output
odd

Test 15

Verdict:

input
15

correct output
even

user output
odd

Test 16

Verdict: ACCEPTED

input
16

correct output
odd

user output
odd

Test 17

Verdict:

input
17

correct output
even

user output
odd

Test 18

Verdict:

input
18

correct output
even

user output
odd

Test 19

Verdict:

input
19

correct output
even

user output
odd

Test 20

Verdict: ACCEPTED

input
999999874000003969

correct output
odd

user output
odd

Test 21

Verdict:

input
999999999999999989

correct output
even

user output
odd

Test 22

Verdict: ACCEPTED

input
1000000000000000000

correct output
odd

user output
odd