АВТ
Language: Russian
English

Remote Training on Programming

Problems Online status Contests
News FAQ E-learning
For authors:
Register  ||  Login
 
Hello, Guest! Please login or register.

1583. Square Root

Time Limit: 1 seconds
Memory Limit:262144KB
Points:100
View Problem Statistics Submit Problem added 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


View Problem Statistics Submit Problem discussion Author/source:
Problems from Contests and Camps / Trainings in Perm 2009 / 07.07.09 Big Contest /
1582. A - HHPaint 1583. 1584. C - Interesting Places 1585. D - Road to Home 1586. E - Ant and Apples
time generating 0.125 sec.
© Copyright VSU, AVT, Nosov D.A., Andrianov I.A.