0101少儿编程
Home
ProblemSet
Source/Category
Contest
Status
Ranklist
F.A.Qs
IDE下载
Login
Register
5353: 【27课】【3163】第几项
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:208
Solved:83
Submit
Submit Record
Statistics
ShowOff!
Description
对于正整数
n
,
m
,求
s
=
1
+
2
+
3
…
…
+
n
,当加到第几项时,
s
的值会超过
m
?
Input
输入
m
。(
1
≤
m
≤
40000
)
Output
输出
n
。
Sample Input
Copy
1000
Sample Output
Copy
45
Source/Category
一本通编程启蒙
循环结构
Submit
Submit Record
Statistics
ShowOff!