QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#626401 | #5732. Even or Odd | Rebuked | WA | 0ms | 3508kb | C++20 | 290b | 2024-10-10 07:56:54 | 2024-10-10 07:56:55 |
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";
if(a%2 == 0) cout << "even";
if(a%2 == 1) cout << "either";
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3508kb
input:
1
output:
either
result:
wrong answer 1st lines differ - expected: 'Either', found: 'either'