-Code
from math import pi
for t in range(1, int(input()) + 1):
b, w = map(float, input().split())
total = 0
for _ in range(int(b)):
total += (4 / 3) * pi * (float(input()) ** 3) / 1000
print(f"Data Set {t}:")
print("Yes" if w <= total else "No")
print()
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬] 23925번 Retype (0) | 2024.05.20 |
---|---|
[백준/파이썬] 25642번 젓가락 게임 (0) | 2024.05.19 |
[백준/파이썬] 29918번 Leiutaja number üks (0) | 2024.05.17 |
[백준/파이썬] 31833번 온데간데없을뿐더러 (0) | 2024.05.16 |
[백준/파이썬] 31822번 재수강 (0) | 2024.05.15 |