#16261. 【基础题】求和到第几项
【基础题】求和到第几项
说明
例4.5 求s=1 +2 +3……+n,当加到第几项时,s的值会超过1000?
输入格式
无输入。
输出格式
一个整数n,表示求和到第n项。
no input needed45
例4.5 求s=1 +2 +3……+n,当加到第几项时,s的值会超过1000?
无输入。
一个整数n,表示求和到第n项。
no input needed45
By signing up a 算道OJ universal account, you can submit code and join discussions in all online judging services provided by us.