Type: Default 1000ms 256MiB

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

【周六9:00】暑假作业

Not Claimed
Status
Done
Problem
19
Open Since
2024-7-20 0:00
Deadline
2024-8-25 23:59
Extension
24 hour(s)