QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#570189#9308. World Cupryno#Compile Error//C++23350b2024-09-17 14:35:102024-09-17 14:35:13

Judging History

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

  • [2024-09-17 14:35:13]
  • 评测
  • [2024-09-17 14:35:10]
  • 提交

answer

T = int(input())
for _ in range(T):
    A = list(map(int, input().split()))
    c = sum(x <= A[0] for x in A)
    # c = 32 - c + 1
    if c <= 2:
        print(32)
    elif c <= 6:
        print(16)
    elif c <= 13:
        print(8)
    elif c <= 27:
        print(4)
    elif c <= 31:
        print(2)
    else:
        print(1)


Details

answer.code:5:7: error: invalid preprocessing directive #c
    5 |     # c = 32 - c + 1
      |       ^
answer.code:1:1: error: ‘T’ does not name a type
    1 | T = int(input())
      | ^