QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#297648 | #5732. Even or Odd | jpark | AC ✓ | 1ms | 3608kb | C++14 | 282b | 2024-01-04 21:40:32 | 2024-01-04 21:40:32 |
Judging History
answer
#include<iostream>
#include<string>
using namespace std;
int main(){
int n; cin >> n;
if(n%2==1){
cout << "Either";
}
else{
if(n%4==2){
cout << "Odd";
}
else{
cout << "Even";
}
}
}
詳細信息
Test #1:
score: 100
Accepted
time: 1ms
memory: 3548kb
input:
1
output:
Either
result:
ok single line: 'Either'
Test #2:
score: 0
Accepted
time: 1ms
memory: 3376kb
input:
2
output:
Odd
result:
ok single line: 'Odd'
Test #3:
score: 0
Accepted
time: 1ms
memory: 3372kb
input:
3
output:
Either
result:
ok single line: 'Either'
Test #4:
score: 0
Accepted
time: 1ms
memory: 3608kb
input:
4
output:
Even
result:
ok single line: 'Even'
Test #5:
score: 0
Accepted
time: 0ms
memory: 3312kb
input:
5
output:
Either
result:
ok single line: 'Either'
Test #6:
score: 0
Accepted
time: 0ms
memory: 3428kb
input:
6
output:
Odd
result:
ok single line: 'Odd'
Test #7:
score: 0
Accepted
time: 0ms
memory: 3380kb
input:
7
output:
Either
result:
ok single line: 'Either'
Test #8:
score: 0
Accepted
time: 0ms
memory: 3428kb
input:
8
output:
Even
result:
ok single line: 'Even'
Test #9:
score: 0
Accepted
time: 0ms
memory: 3424kb
input:
9
output:
Either
result:
ok single line: 'Either'
Test #10:
score: 0
Accepted
time: 0ms
memory: 3436kb
input:
10
output:
Odd
result:
ok single line: 'Odd'