АВТ
Язык:

Дистанционный практикум по программированию

Задачи Online статус Соревнования
Новости Справка СДО
 
Здравствуйте, Гость! Войдите с паролем или зарегистрируйтесь.

1587. Square

Ограничение времени: 1 сек.
Ограничение памяти:262144 КБайт
Баллы:100
Статистика Послать на проверку Задачу добавил debug

Maintenance department of H&H company bought a new table. Table has a square form. For a strange reason network patchcords at the H&H company stick out from the floor at the points with integer coordinates (what is even more strange each point with an integer coordinates has a patchcord).

Maintenance department manager asked you to help to find out the minimum possible number of patchcords covered by the table. Patchcords is covered by the table if it lays strictly inside the square perimeter of bottom surface of the table.

Входные данные

Input contains only one integer S (1 ≤ S ≤ 100) — the area of the bottom table surface.

Выходные данные

Write to the output only one integer — the minimum possible number of points with integer coordinates covered by the table.

Пример

Входные данные
5
Выходные данные
3


Статистика Послать на проверку Обсуждение задачи Автор/источник:
Задачи с соревнований и сборов / Сборы в Перми 2009 / 07.07.09 Большой контест /
1586. E - Ant and Apples 1587. 1588. G - Pair 1589. H - The Fence 1590. I - Painting the Natural Numbers
 
время генерации 0.563 сек.
© Copyright ВоГУ, АВТ, Носов Д.А., Андрианов И.А.