QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#623082#5732. Even or OddtorresosoWA 9ms10624kbPython3263b2024-10-09 10:03:572024-10-09 10:03:58

Judging History

你现在查看的是最新测评结果

  • [2024-10-09 10:03:58]
  • 评测
  • 测评结果:WA
  • 用时:9ms
  • 内存:10624kb
  • [2024-10-09 10:03:57]
  • 提交

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'