编程题

最小n值

题目描述

编一程序求满足不等式1+1/2+1/3…+1/n>=m的最小n值。

其中n,m为正整数。其中m不超过20

输入格式

输入m

输出格式

输出n

样例输入

3

样例输出

11

查看答案
赣ICP备20007335号-2