Task: | Alien Invasion |
Sender: | El Numero Uno |
Submission time: | 2018-05-26 12:08:43 +0300 |
Language: | C++ |
Status: | READY |
Result: | WRONG ANSWER |
test | verdict | time | |
---|---|---|---|
#1 | ACCEPTED | 0.01 s | details |
#2 | WRONG ANSWER | 0.02 s | details |
#3 | WRONG ANSWER | 0.01 s | details |
#4 | ACCEPTED | 0.01 s | details |
#5 | WRONG ANSWER | 0.01 s | details |
#6 | WRONG ANSWER | 0.01 s | details |
#7 | WRONG ANSWER | 0.01 s | details |
#8 | WRONG ANSWER | 0.01 s | details |
#9 | ACCEPTED | 0.01 s | details |
#10 | WRONG ANSWER | 0.01 s | details |
#11 | WRONG ANSWER | 0.01 s | details |
#12 | WRONG ANSWER | 0.01 s | details |
#13 | WRONG ANSWER | 0.01 s | details |
#14 | WRONG ANSWER | 0.01 s | details |
#15 | WRONG ANSWER | 0.01 s | details |
#16 | ACCEPTED | 0.01 s | details |
#17 | WRONG ANSWER | 0.01 s | details |
#18 | WRONG ANSWER | 0.01 s | details |
#19 | WRONG ANSWER | 0.01 s | details |
#20 | ACCEPTED | 0.01 s | details |
#21 | WRONG ANSWER | 0.01 s | details |
#22 | ACCEPTED | 0.01 s | details |
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: WRONG ANSWER
input |
---|
2 |
correct output |
---|
even |
user output |
---|
odd |
Test 3
Verdict: WRONG ANSWER
input |
---|
3 |
correct output |
---|
even |
user output |
---|
odd |
Test 4
Verdict: ACCEPTED
input |
---|
4 |
correct output |
---|
odd |
user output |
---|
odd |
Test 5
Verdict: WRONG ANSWER
input |
---|
5 |
correct output |
---|
even |
user output |
---|
odd |
Test 6
Verdict: WRONG ANSWER
input |
---|
6 |
correct output |
---|
even |
user output |
---|
odd |
Test 7
Verdict: WRONG ANSWER
input |
---|
7 |
correct output |
---|
even |
user output |
---|
odd |
Test 8
Verdict: WRONG ANSWER
input |
---|
8 |
correct output |
---|
even |
user output |
---|
odd |
Test 9
Verdict: ACCEPTED
input |
---|
9 |
correct output |
---|
odd |
user output |
---|
odd |
Test 10
Verdict: WRONG ANSWER
input |
---|
10 |
correct output |
---|
even |
user output |
---|
odd |
Test 11
Verdict: WRONG ANSWER
input |
---|
11 |
correct output |
---|
even |
user output |
---|
odd |
Test 12
Verdict: WRONG ANSWER
input |
---|
12 |
correct output |
---|
even |
user output |
---|
odd |
Test 13
Verdict: WRONG ANSWER
input |
---|
13 |
correct output |
---|
even |
user output |
---|
odd |
Test 14
Verdict: WRONG ANSWER
input |
---|
14 |
correct output |
---|
even |
user output |
---|
odd |
Test 15
Verdict: WRONG ANSWER
input |
---|
15 |
correct output |
---|
even |
user output |
---|
odd |
Test 16
Verdict: ACCEPTED
input |
---|
16 |
correct output |
---|
odd |
user output |
---|
odd |
Test 17
Verdict: WRONG ANSWER
input |
---|
17 |
correct output |
---|
even |
user output |
---|
odd |
Test 18
Verdict: WRONG ANSWER
input |
---|
18 |
correct output |
---|
even |
user output |
---|
odd |
Test 19
Verdict: WRONG ANSWER
input |
---|
19 |
correct output |
---|
even |
user output |
---|
odd |
Test 20
Verdict: ACCEPTED
input |
---|
999999874000003969 |
correct output |
---|
odd |
user output |
---|
odd |
Test 21
Verdict: WRONG ANSWER
input |
---|
999999999999999989 |
correct output |
---|
even |
user output |
---|
odd |
Test 22
Verdict: ACCEPTED
input |
---|
1000000000000000000 |
correct output |
---|
odd |
user output |
---|
odd |