1733: 【CSP循环】求恰好使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:11 Solved:7

Description

求恰好使 lns="http://www.w3.org/1998/Math/MathML">s=1+1/2+1/3++1/n 的值大于 lns="http://www.w3.org/1998/Math/MathML">X  lns="http://www.w3.org/1998/Math/MathML">n 的值。( lns="http://www.w3.org/1998/Math/MathML">2x10 )

Input

输入只有一行,包括 lns="http://www.w3.org/1998/Math/MathML">1 个整数 lns="http://www.w3.org/1998/Math/MathML">X 

Output

输出只有一行(这意味着末尾有一个回车符号),包括 lns="http://www.w3.org/1998/Math/MathML">1 个整数。

Sample Input Copy

2

Sample Output Copy

4