QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#626402#5732. Even or OddRebukedWA 0ms3632kbC++20290b2024-10-10 07:57:372024-10-10 07:57:38

Judging History

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

  • [2024-10-10 07:57:38]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3632kb
  • [2024-10-10 07:57:37]
  • 提交

answer

// Online C++ compiler to run C++ program online
#include <iostream>
#include <vector>
#include <map>

using namespace std;

int main() {
    int a;
    cin >> a;
    if(a==2) cout << "Odd";
    if(a%2 == 0) cout << "Even";
    if(a%2 == 1) cout << "Either";

    return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3568kb

input:

1

output:

Either

result:

ok single line: 'Either'

Test #2:

score: -100
Wrong Answer
time: 0ms
memory: 3632kb

input:

2

output:

OddEven

result:

wrong answer 1st lines differ - expected: 'Odd', found: 'OddEven'