QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#623174 | #5732. Even or Odd | chalupa | WA | 0ms | 3696kb | C++17 | 228b | 2024-10-09 10:29:02 | 2024-10-09 10:29:04 |
Judging History
answer
#include <iostream>
int main() {
int N;
std::cin >> N;
if (N == 1) {
std::cout << "Either\n";
return 0;
}
if (N % 2 == 0) {
std::cout << "Odd\n";
} else {
std::cout << "Even\n";
}
}
詳細信息
Test #1:
score: 100
Accepted
time: 0ms
memory: 3656kb
input:
1
output:
Either
result:
ok single line: 'Either'
Test #2:
score: 0
Accepted
time: 0ms
memory: 3696kb
input:
2
output:
Odd
result:
ok single line: 'Odd'
Test #3:
score: -100
Wrong Answer
time: 0ms
memory: 3628kb
input:
3
output:
Even
result:
wrong answer 1st lines differ - expected: 'Either', found: 'Even'