QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#623052#5732. Even or OddAwesom3ericAC ✓19ms10704kbPython3230b2024-10-09 09:51:382024-10-09 09:51:38

Judging History

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

  • [2024-10-09 09:51:38]
  • 评测
  • 测评结果:AC
  • 用时:19ms
  • 内存:10704kb
  • [2024-10-09 09:51:38]
  • 提交

answer

# 1 = either
# 2 = odd
# 3 = Either
# 4 = even
# 5 = Either

n = int(input())

# Even N
if n % 2 == 0:
    if n % 4 == 0:
        print("Even")
    else:
        print("Odd")

# Odd N
else:
    print("Either")


详细

Test #1:

score: 100
Accepted
time: 19ms
memory: 10604kb

input:

1

output:

Either

result:

ok single line: 'Either'

Test #2:

score: 0
Accepted
time: 9ms
memory: 10520kb

input:

2

output:

Odd

result:

ok single line: 'Odd'

Test #3:

score: 0
Accepted
time: 18ms
memory: 10636kb

input:

3

output:

Either

result:

ok single line: 'Either'

Test #4:

score: 0
Accepted
time: 12ms
memory: 10584kb

input:

4

output:

Even

result:

ok single line: 'Even'

Test #5:

score: 0
Accepted
time: 12ms
memory: 10632kb

input:

5

output:

Either

result:

ok single line: 'Either'

Test #6:

score: 0
Accepted
time: 18ms
memory: 10704kb

input:

6

output:

Odd

result:

ok single line: 'Odd'

Test #7:

score: 0
Accepted
time: 15ms
memory: 10576kb

input:

7

output:

Either

result:

ok single line: 'Either'

Test #8:

score: 0
Accepted
time: 13ms
memory: 10524kb

input:

8

output:

Even

result:

ok single line: 'Even'

Test #9:

score: 0
Accepted
time: 11ms
memory: 10636kb

input:

9

output:

Either

result:

ok single line: 'Either'

Test #10:

score: 0
Accepted
time: 11ms
memory: 10636kb

input:

10

output:

Odd

result:

ok single line: 'Odd'