Problem1190--求和到第几项1190: 求和到第几项
Time Limit: 1.000 Sec Memory Limit: 128 MB
Submit: 329 Solved: 229
[Submit] [Status] [Web Board] [Creator:]Description
求s=1 +2 +3……+n,当加到第几项时,s的值会超过1000?
Input
无输入。
Output
一个整数n,表示求和到第n项。
Sample Input
Sample Output
45
Source/Category
[Submit] [Status]