Contest thường xuyên 3: Tổng của nhiều số

View as PDF

Submit solution

Points: 900 (partial)
Time limit: 1.0s
Memory limit: 256M
Input: stdin
Output: stdout

Author:
Problem type

Hãy tính tổng của nhiều số cho đến khi số nhập vào bằng 0

Input

  • Nhập vào nhiều số cho đến khi số nhập vào bằng 0
  • Note: Đảm bảo số phần tử nhập vào \le 1000

Output

  • In ra kết quả theo yêu cầu đề bài

Sample Input

1
2
3
4
0

Sample Output

10

Comments

There are no comments at the moment.