← Back to List

20374번: Big Money ↗

Solutions

PyPy3
165 B | 165 chars
x = y = 0

while 1:
  try:
    s = input()
  except:
    break
  
  a, b = map(int, s.split("."))
  
  x += a
  y += b

x += y // 100
y %= 100

print(f"{x}.{y:02d}")