Toggle navigation
编程魔法师 OJ
Home
Contest
Signup
Login
Start
2024-01-24 16:30:00
冬令营基础班2024年1.24号 for循环结构
End
2024-01-24 17:30:00
Contest is over.
Now
2026-11-19 00:40:48
Information
Problem
Status
Standing
Clarification
Editorial
A
B
C
D
E
F
G
H
B. 求数的总和
Description
从键盘读入每个数,试求全部数的总和。当用户输入0时,程序结束。
Input
输入N(N<100)个数,以空格间隔,最后以0结束。
Output
输出总和。
Examples
Input
1 2 3 0
Output
6
Submit
Login
Login
Signup
Time Limit
1 second
Memory Limit
128 MB
Submit
×