In mathematics, the nth harmonic number is the sum of the reciprocals of the first n natural numbers:
In this problem, you are given n, you have to find Hn.
Input
Input starts with an integer T (≤ 10000), denoting the number of test cases.
Each case starts with a line containing an integer n (1
Harmonic Number (调和级数)LightOJ - 1234
最新推荐文章于 2020-11-04 21:39:20 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)