QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#623156#5732. Even or Oddmaxy1991991WA 0ms3600kbC++17410b2024-10-09 10:26:022024-10-09 10:26:03

Judging History

你现在查看的是最新测评结果

  • [2024-10-09 10:26:03]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3600kb
  • [2024-10-09 10:26:02]
  • 提交

answer

#include <iostream>
#include <vector>
#include <string>
#include <fstream>

using namespace std;

int main()
{
    int n=0;
    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";
        }
    }
}

詳細信息

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3600kb

input:

1

output:

Even

result:

wrong answer 1st lines differ - expected: 'Either', found: 'Even'