#A. 【例27.3】 第几项

    Type: Default 1000ms 64MiB

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

六上二 while

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