QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#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")
详细
Test #1:
score: 0
Wrong Answer
time: 9ms
memory: 10624kb
input:
1
output:
Odd
result:
wrong answer 1st lines differ - expected: 'Either', found: 'Odd'