#158. 级数求和
级数求和
Description
给定一个y,求使 s=1+1/2+1/3+……+1/n的值大于y 的最小的n值。 0<y<15
Input Format
一个整数y。
Output Format
满足要求的最小的整数n
Sample
input
10
output
12367
Hint
时间限制:
空间限制:
给定一个y,求使 s=1+1/2+1/3+……+1/n的值大于y 的最小的n值。 0<y<15
一个整数y。
满足要求的最小的整数n
input
10
output
12367
时间限制:1s
空间限制:256MB
By signing up a code-fans universal account, you can submit code and join discussions in all online judging services provided by us.