#P1766. 求和到第几项

求和到第几项

Description

例4.5   求s=1 +2 +3……+n,当加到第几项时,s的值会超过1000?



Input Format

无输入。


Output Format

一个整数n,表示求和到第n项。




45
</p>

Source

L2A 循环