2943: 求恰好使s=1+1/2+1/3+…+1/n的值大于X时n的值

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:14 Solved:13

Description

  求恰好使s=1+1/2+1/3+…+1/n的值大于X时n的值。(2<=x<=10)

Input

  输入只有一行,包括1个整数X。

Output

  输出只有一行(这意味着末尾有一个回车符号),包括1个整数。

Sample Input Copy

2

Sample Output Copy

4

HINT

参考程序: