QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#623082 | #5732. Even or Odd | torresoso | WA | 9ms | 10624kb | Python3 | 263b | 2024-10-09 10:03:57 | 2024-10-09 10:03:58 |
Judging History
answer
n = int(input())
sum1 = 0
for i in range(1, 1+n):
sum1 += 1
sum2 = 0
for i in range(2, 2+n):
sum2 += 1
if sum1 % 2 == 0 and sum2 % 2 == 0:
print("Even")
elif sum1 % 2 != 0 and sum2 % 2 != 0:
print("Odd")
else:
print("Either")
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 9ms
memory: 10624kb
input:
1
output:
Odd
result:
wrong answer 1st lines differ - expected: 'Either', found: 'Odd'