【例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.

说明

对于正整数nn,mm,求s=1+2+3+ns=1+2+3……+n,当加到第几项时,ss的值会超过mm

输入格式

输入mm。(1m400001≤m≤40000)

输出格式

输出nn

样例

1000
45

五 循环练习

Not Claimed
Status
Done
Problem
23
Open Since
2023-4-28 0:00
Deadline
2023-5-19 23:59
Extension
24 hour(s)