QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#626402 | #5732. Even or Odd | Rebuked | WA | 0ms | 3632kb | C++20 | 290b | 2024-10-10 07:57:37 | 2024-10-10 07:57:38 |
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;
}
詳細信息
Test #1:
score: 100
Accepted
time: 0ms
memory: 3568kb
input:
1
output:
Either
result:
ok single line: 'Either'
Test #2:
score: -100
Wrong Answer
time: 0ms
memory: 3632kb
input:
2
output:
OddEven
result:
wrong answer 1st lines differ - expected: 'Odd', found: 'OddEven'