QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#623148 | #5732. Even or Odd | maxy1991991 | WA | 0ms | 3768kb | C++20 | 408b | 2024-10-09 10:23:27 | 2024-10-09 10:23:29 |
Judging History
answer
#include <iostream>
#include <vector>
#include <string>
#include <fstream>
using namespace std;
int main()
{
int n;
ifstream myfile("input.txt");
myfile >> 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";
}
}
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3768kb
input:
1
output:
Even
result:
wrong answer 1st lines differ - expected: 'Either', found: 'Even'