This website works better with JavaScript
Sākums
Izpētīt
Palīdzība
Reģistrēties
Pierakstīties
AOJTeam
/
Contest1458
Vērot
5
Pievienot zvaigznīti
0
Atdalīts
0
Faili
Problēmas
0
Izmaiņu pieprasījumi
0
Vikivietne
Koks:
3bcfdbae7a
Atzari
Tagi
master
Contest1458
/
Python
/
C.py
C.py
113 B
Vēsture
Neapstrādāts
1
2
3
4
5
while True:
s = list(map(int, input().strip().split()))
if s[0] == 0:
break
print(sum(s[1:]))