#Z000001. 求第几项
求第几项
No testdata at current.
题目描述
对于正整数n,m,求s=1+2+3……+n,当加到第几项时,s的值会超过m?
格式
Input
输入m。
Output
输出n。
Samples
1000
45
Limitation
1s, 1024KiB for each test case.
No testdata at current.
对于正整数n,m,求s=1+2+3……+n,当加到第几项时,s的值会超过m?
输入m。
输出n。
1000
45
1s, 1024KiB for each test case.
By signing up a 战码少年-战码青少年编程(专业信息学奥赛编程训练) universal account, you can submit code and join discussions in all online judging services provided by us.