#H. 【例27.3】 第几项

    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

2024022204-day4

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
9
Start at
2024-2-22 17:00
End at
2024-2-22 18:30
Duration
1.5 hour(s)
Host
Partic.
4