QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#623056 | #5732. Even or Odd | purelyKai | AC ✓ | 17ms | 10740kb | Python3 | 211b | 2024-10-09 09:53:37 | 2024-10-09 09:53:38 |
Judging History
answer
def oddOrEven(n):
if n % 2 == 0 and (n / 2) % 2 == 1:
print('Odd')
elif n % 2 == 0 and (n / 2) % 2 == 0:
print('Even')
else:
print('Either')
oddOrEven(int(input()))
详细
Test #1:
score: 100
Accepted
time: 14ms
memory: 10708kb
input:
1
output:
Either
result:
ok single line: 'Either'
Test #2:
score: 0
Accepted
time: 17ms
memory: 10720kb
input:
2
output:
Odd
result:
ok single line: 'Odd'
Test #3:
score: 0
Accepted
time: 11ms
memory: 10576kb
input:
3
output:
Either
result:
ok single line: 'Either'
Test #4:
score: 0
Accepted
time: 13ms
memory: 10632kb
input:
4
output:
Even
result:
ok single line: 'Even'
Test #5:
score: 0
Accepted
time: 9ms
memory: 10520kb
input:
5
output:
Either
result:
ok single line: 'Either'
Test #6:
score: 0
Accepted
time: 14ms
memory: 10668kb
input:
6
output:
Odd
result:
ok single line: 'Odd'
Test #7:
score: 0
Accepted
time: 17ms
memory: 10700kb
input:
7
output:
Either
result:
ok single line: 'Either'
Test #8:
score: 0
Accepted
time: 13ms
memory: 10720kb
input:
8
output:
Even
result:
ok single line: 'Even'
Test #9:
score: 0
Accepted
time: 13ms
memory: 10704kb
input:
9
output:
Either
result:
ok single line: 'Either'
Test #10:
score: 0
Accepted
time: 12ms
memory: 10740kb
input:
10
output:
Odd
result:
ok single line: 'Odd'