본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 11257번 IT Passport Examination

by 현장 2022. 10. 2.

- Code

for _ in range(int(input())):
    num, a, b, c = map(int, input().split())
    total = a + b + c
    res = "FAIL"

    if total >= 55 and a >= 35 * 0.3 and b >= 25 * 0.3 and c >= 40 * 0.3:
        res = "PASS"
    print(f"{num} {total} {res}")