АВТ
Language:

Remote Training on Programming

Problems On-line status Contests FAQ
For authors:
Register  ||  Login
 
Hello, Guest! Login or register.

1018. A83b

Time Limit: 4 seconds
Memory Limit:65536KB
Points:2
View Problem Statistics Submit Problem added Undefined

Дано действительное число a.

Найти такое наименьшее x, что 1+(1/2)+(1/3)+...+(1/x)>a

Input

Одно действительное число a не превышающее 20

Output

Натуральное число x

Sample

InputOutput
Пример 1. Вход:
2
Пример 1. Выход:
4

View Problem Statistics Submit Author/source:
Educational Courses / New problems in testing /
1047. A78B 1018. 949. A86 673. Amount element more given 634. Amount even element
We can all benefit by doing occasional "toy" programs, when artificial restrictions are set up, so that we are forced to push our abilities to the limit. The art of tackling miniproblems with all our energy will sharpen our talents for the real problems. Donald E. Knuth.
time generating 0.062 sec.
© Copyright VSTU, AVT, Nosov D.A.