QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#626403 | #5732. Even or Odd | Rebuked | WA | 0ms | 3640kb | C++20 | 300b | 2024-10-10 07:58:21 | 2024-10-10 07:58:21 |
Judging History
answer
// Online C++ compiler to run C++ program online
#include <iostream>
#include <vector>
#include <map>
using namespace std;
int main() {
int a;
cin >> a;
if(a==2) cout << "Odd";
else if(a%2 == 0) cout << "Even";
else if(a%2 == 1) cout << "Either";
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3508kb
input:
1
output:
Either
result:
ok single line: 'Either'
Test #2:
score: 0
Accepted
time: 0ms
memory: 3640kb
input:
2
output:
Odd
result:
ok single line: 'Odd'
Test #3:
score: 0
Accepted
time: 0ms
memory: 3568kb
input:
3
output:
Either
result:
ok single line: 'Either'
Test #4:
score: 0
Accepted
time: 0ms
memory: 3632kb
input:
4
output:
Even
result:
ok single line: 'Even'
Test #5:
score: 0
Accepted
time: 0ms
memory: 3512kb
input:
5
output:
Either
result:
ok single line: 'Either'
Test #6:
score: -100
Wrong Answer
time: 0ms
memory: 3504kb
input:
6
output:
Even
result:
wrong answer 1st lines differ - expected: 'Odd', found: 'Even'