Tổng phân số


Submit solution

Points: 1
Time limit: 1.0s
Memory limit: 1G

Problem type

Cho số nguyên $N$. Hãy tìm số $k$ nhỏ nhất sao cho: $1+\frac{1}{2}+\frac{1}{3}+...+\frac{1}{k} \ge N$.

Dữ liệu

  • Số nguyên dương duy nhất $N$ $(1\le N \le 19)$.

Kết quả

  • Kết quả bài toán.

Ví dụ

Ví dụ 1

input

3

output

11

Comments

There are no comments at the moment.