QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#623067 | #5732. Even or Odd | larsotaz | WA | 15ms | 10700kb | Python3 | 390b | 2024-10-09 09:58:07 | 2024-10-09 09:58:07 |
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("Odd")
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")
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 15ms
memory: 10528kb
input:
1
output:
Either
result:
ok single line: 'Either'
Test #2:
score: 0
Accepted
time: 6ms
memory: 10580kb
input:
2
output:
Odd
result:
ok single line: 'Odd'
Test #3:
score: 0
Accepted
time: 15ms
memory: 10700kb
input:
3
output:
Either
result:
ok single line: 'Either'
Test #4:
score: 0
Accepted
time: 11ms
memory: 10580kb
input:
4
output:
Even
result:
ok single line: 'Even'
Test #5:
score: -100
Wrong Answer
time: 15ms
memory: 10636kb
input:
5
output:
Odd
result:
wrong answer 1st lines differ - expected: 'Either', found: 'Odd'