Contest.uni-smr.ac.ru :: Programming contests in Samara
Русская версия || English version
Login:
Password:
Forget password?
 example: Bill Gates
 

Save our Souls

Автор задачи: Андрей Гайдель

Первоисточник: -

URL первоисточника: -

Задачу добавил: LGR

Успешно сдано решений: 20

The 3008-th year. People at last finally have advanced in study of the theory thorsion fields and have realized, that each man has a certain essence, which they have named as a print of individuality, and in slang already during 10 thousand years named as soul. The soul of the man carries the information that this man is this man, instead of any another. Besides the scientists have understood, that in the June of the 3008-th year all souls will leave the bodies and will disappear. That it to not allow special device named The Catcher of Souls immediately was designed. But its start and works will need a lot of energy, which consumption at it linely depends on that volume of the information, which is carried by the soul. Therefore scientists have decided at once to determine, how many minimally information can be carried in itself by the soul of one man, were guided only by that known fact, that on the Earth lives N of the people.

The entrance data
The file input.txt contains a sole integer N (0 < =N < =101000).

The target data
The file output.txt should contain a sole integer - minimum quantity of the information in bits, which can be carried in itself by the soul of the man.

Example
input.txt
10
output.txt
4

Submit

Задать вопрос жюри по этой задаче