4192: 范范找最大数(1+2+3+......+n>输入数)
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:17
Solved:7
Description
编程以获得满足下列条件的最小正整数n:
1+2+3+4+…+n>限值(输入为限值)
示例:
输入: 6,n为4 (1 +2+3+4>限值,10 > 6)
Input
一个数s
Output
求n,使 1+2+3+4+......+n 刚好大于输人的s。
输出n
Sample Input Copy
6
Sample Output Copy
4