QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#623216#5732. Even or Oddsoonsk#AC ✓15ms10800kbPython3279b2024-10-09 10:41:072024-10-09 10:41:08

Judging History

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

  • [2024-10-09 10:41:08]
  • 评测
  • 测评结果:AC
  • 用时:15ms
  • 内存:10800kb
  • [2024-10-09 10:41:07]
  • 提交

answer

n = int(input())
if n == 1:
     print("Either")
    # odd number
else:
    #even 
    if n % 2 == 0:
        div2 = n/2 % 2
        #odd
        if div2 == 1:
            print("Odd")
        else: 
            print("Even")  
    else:
        print("Either")    

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 12ms
memory: 10640kb

input:

1

output:

Either

result:

ok single line: 'Either'

Test #2:

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

input:

2

output:

Odd

result:

ok single line: 'Odd'

Test #3:

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

input:

3

output:

Either

result:

ok single line: 'Either'

Test #4:

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

input:

4

output:

Even

result:

ok single line: 'Even'

Test #5:

score: 0
Accepted
time: 7ms
memory: 10708kb

input:

5

output:

Either

result:

ok single line: 'Either'

Test #6:

score: 0
Accepted
time: 5ms
memory: 10800kb

input:

6

output:

Odd

result:

ok single line: 'Odd'

Test #7:

score: 0
Accepted
time: 14ms
memory: 10740kb

input:

7

output:

Either

result:

ok single line: 'Either'

Test #8:

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

input:

8

output:

Even

result:

ok single line: 'Even'

Test #9:

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

input:

9

output:

Either

result:

ok single line: 'Either'

Test #10:

score: 0
Accepted
time: 6ms
memory: 10652kb

input:

10

output:

Odd

result:

ok single line: 'Odd'