QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#623507 | #5732. Even or Odd | maxy1991991 | WA | 0ms | 3596kb | C++17 | 449b | 2024-10-09 12:29:56 | 2024-10-09 12:29:57 |
Judging History
answer
#include <iostream>
#include <vector>
#include <string>
#include <fstream>
int main()
{
int n;
std::ifstream myfile("input.txt");
myfile >> n;
std::cout << n;
myfile >> n;
std::cout << n;
if (n%2==1) {
std::cout << "Either";
}
else if (n%2==0) {
if ((n/2)%2==1) {
std::cout << "Odd";
}
else {
std::cout << "Even";
}
}
}
详细
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3596kb
input:
1
output:
00Even
result:
wrong answer 1st lines differ - expected: 'Either', found: '00Even'