/ SeriousOJ /

Record Detail

Compile Error

foo.c:1:5: error: expected expression before 'int'
    1 | t = int(input())
      |     ^~~

Code

t = int(input())
if 1 <= t <= 10:
    for i in range(t):
        count = 0
        Brick = 0
        a, b, c, d = map(int, input().split())
        if 0<=a<=40 and 0<=b<=40 and 0<=c<=40 and 0<=d<=40:
            count = (a * 1) + (b * 2) + (c * 3) + (d * 3)
            Brick = int(count / 9)
            print(f"Case {i + 1}: {Brick}")

Information

Submit By
Type
Submission
Problem
P1014 FIFA World Cup 2022 Again!
Language
C99 (GCC 13.2.0)
Submit At
2024-01-09 13:58:04
Judged At
2024-01-09 13:58:04
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes