【例27.3】 第几项
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
说明
对于正整数,,求,当加到第几项时,的值会超过?
输入格式
输入。()
输出格式
输出。
样例
1000
45
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
对于正整数n,m,求s=1+2+3……+n,当加到第几项时,s的值会超过m?
输入m。(1≤m≤40000)
输出n。
1000
45
By signing up a acjudge universal account, you can submit code and join discussions in all online judging services provided by us.