Beakjoon&프로그래머스/파이썬
[백준/파이썬] 11340번 Making the Grade?
현장
2025. 6. 19. 19:54
-Code
for _ in range(int(input())):
a, b, c = map(int, input().split())
total = a * 0.15 + b * 0.2 + c * 0.25
res = 0
flag = True
while total + res * 0.4 < 90:
res += 1
if res > 100:
flag = False
break
print(res if flag else "impossible")