【例26.3】 多数求和

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

说明

输入若干个数(不超过 10001000 个数),求他们的和。

输入格式

一行若干个用空格分隔的整数 aia_i(1ai1041≤a_i≤10^4 ),最后会以 1-1 表示结束。(1-1 不需要统计)

输出格式

一个整数,表示 这些数的和。

样例

10 20 30 -1
60

x基础

Not Claimed
Status
Done
Problem
22
Open Since
2024-6-28 0:00
Deadline
2024-8-25 23:59
Extension
24 hour(s)