5349: BZOJ1349:[Baltic2006]Squint

Memory Limit:64 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

Write a program to calculate integer square roots.


输入格式

The input is read from a text file named squint.in. Its only line consists of an integer 0 < = n < 2^63 .


输出格式

Its only line consists of the smallest nonnegative integer q such that q^2 >= n .


样例输入

122333444455555

样例输出

11060446

提示

sqrt(122333444455555)=11060445.038765619 .


题目来源

没有写明来源

加入题单

上一题 下一题 算法标签: