- 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}")
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬] 24751번 Betting (0) | 2022.10.04 |
---|---|
[백준/파이썬] 25703번 포인터 공부 (0) | 2022.10.03 |
[백준/파이썬] 8760번 Schronisko (0) | 2022.10.01 |
[백준/파이썬] 23235번 The Fastest Sorting Algorithm In The World (0) | 2022.09.30 |
[백준/파이썬] 4696번 St. Ives (0) | 2022.09.29 |