QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#623070 | #5732. Even or Odd | larsotaz | AC ✓ | 16ms | 10708kb | Python3 | 393b | 2024-10-09 09:59:00 | 2024-10-09 09:59:00 |
Judging History
answer
def inp(): # For taking integer inputs.
return(int(input()))
i = inp()
if i == 1:
print("Either")
elif i == 2:
print("Odd")
elif i == 3:
print("Either")
elif i == 4:
print("Even")
elif i % 2 != 0:
print("Either")
elif i % 2 == 0 and i // 2 % 2 != 0:
print("Odd")
elif i % 2 == 0 and i // 2 % 2 == 0:
print("Even")
else:
print("Either")
详细
Test #1:
score: 100
Accepted
time: 12ms
memory: 10612kb
input:
1
output:
Either
result:
ok single line: 'Either'
Test #2:
score: 0
Accepted
time: 10ms
memory: 10612kb
input:
2
output:
Odd
result:
ok single line: 'Odd'
Test #3:
score: 0
Accepted
time: 15ms
memory: 10612kb
input:
3
output:
Either
result:
ok single line: 'Either'
Test #4:
score: 0
Accepted
time: 15ms
memory: 10708kb
input:
4
output:
Even
result:
ok single line: 'Even'
Test #5:
score: 0
Accepted
time: 15ms
memory: 10616kb
input:
5
output:
Either
result:
ok single line: 'Either'
Test #6:
score: 0
Accepted
time: 11ms
memory: 10616kb
input:
6
output:
Odd
result:
ok single line: 'Odd'
Test #7:
score: 0
Accepted
time: 15ms
memory: 10608kb
input:
7
output:
Either
result:
ok single line: 'Either'
Test #8:
score: 0
Accepted
time: 15ms
memory: 10576kb
input:
8
output:
Even
result:
ok single line: 'Even'
Test #9:
score: 0
Accepted
time: 16ms
memory: 10588kb
input:
9
output:
Either
result:
ok single line: 'Either'
Test #10:
score: 0
Accepted
time: 12ms
memory: 10584kb
input:
10
output:
Odd
result:
ok single line: 'Odd'