Problem12286--求n的值

12286: 求n的值

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

 输入一个整数m,求恰好使s=1+2+3+…+n的值大于mn的值。

输入 10

输出 5

输入1000

输出45