QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#623507#5732. Even or Oddmaxy1991991WA 0ms3596kbC++17449b2024-10-09 12:29:562024-10-09 12:29:57

Judging History

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

  • [2024-10-09 12:29:57]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3596kb
  • [2024-10-09 12:29:56]
  • 提交

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";
        }
    }
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

1

output:

00Even

result:

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