python-algorithm
백준 25991 Lots of Liquid
무적김두칠
2022. 11. 29. 22:51
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 |
반응형