https://www.acmicpc.net/problem/25991
25991번: Lots of Liquid
You work at a warehouse that sells chemical products, where somebody just placed an order for all the Boron Acetate Phosphoric Carbonate (BAPC) that you have in store. This liquid is stored in many separate lots, in cube-shaped containers, but your client
www.acmicpc.net
1
2
3
4
5
6
7
8
9
10
11
|
def sol(liquids):
total = 0
for i in liquids:
total += i**3
answer = total**(1.0/3.0)
return answer
if __name__ == '__main__':
n_liquids =int(input())
liquids = list(map(float, input().split()))
print(sol(liquids))
|
cs |
반응형
'python-algorithm' 카테고리의 다른 글
백준 25983 Majestic 10 (0) | 2022.11.29 |
---|---|
백준 25858 Divide the Cash (0) | 2022.11.29 |
백준 26068 치킨댄스를 추는 곰곰이를 본 임스 2 (0) | 2022.11.29 |
백준 11586 지영 공주님의 마법 거울 (0) | 2022.11.29 |
백준 10801 카드게임 (0) | 2022.11.28 |
댓글