АВТ
Язык:

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

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

1583. Square Root

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

Within the Jupiter project H&H developers should perform a lot of mathematical calculations. One of the most difficult tasks is to calcuate the value of square root of natural number with very high precision. You promised to help H&H programmers in this challenging task.

You are given two natural numbers N and K (2 ≤ N ≤ 1600, 1 ≤ K ≤ 15000). Your task is to find with K digits after decimal points.

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

The first line of the input contains numbers N and K.

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

Write to the output the square root of N with K digits after decimal point. No round-up is necessary, all digits should be precise.

Пример

Входные данные
2 10
Выходные данные
1.4142135623


Статистика Послать на проверку Обсуждение задачи Автор/источник:
Задачи с соревнований и сборов / Сборы в Перми 2009 / 07.07.09 Большой контест /
1582. A - HHPaint 1583. 1584. C - Interesting Places 1585. D - Road to Home 1586. E - Ant and Apples
 
время генерации 1.25 сек.
© Copyright ВоГУ, АВТ, Носов Д.А., Андрианов И.А.