QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#574153#9308. World CupplayerOWORE 0ms0kbPython3531b2024-09-18 20:56:242024-09-18 20:56:26

Judging History

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

  • [2024-09-18 20:56:26]
  • 评测
  • 测评结果:RE
  • 用时:0ms
  • 内存:0kb
  • [2024-09-18 20:56:24]
  • 提交

answer

t=eval(input())
score=[]
for i in range(t):
    for j in range(32):
        x=eval(input())
        score.append(x)
    China=score[0]
    score.sort()
    index=score.find(China)
    if(index==32):
        print(1)
    elif(index==31):
        print(2)
        print()
    elif(index>=24):
        print(4)
        print()
    elif(index>=16): 
        print(8)
        print()
    elif(index>=8):
        print(16)
        print()
        
    else :
        print(32)
        print()
    score.clear()

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Dangerous Syscalls

input:

1
32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1

output:


result: