[BOJ 2417] 정수 제곱근

View as PDF

Submit solution

Points: 2
Time limit: 0.4s
Memory limit: 128M

Problem types
Allowed languages
Assembly, Awk, C, C++, Java, Pascal, Perl, Python, Sed, Text

정수가 주어지면, 그 수의 정수 제곱근을 구하는 프로그램을 작성하시오.

입력 형식

첫째 줄에 정수 n이 주어진다. (0 ≤ n < 263)

출력 형식

첫째 줄에 q2 ≥ n인 가장 작은 음이 아닌 정수 q를 출력한다.

예제 입력

122333444455555

예제 출력

11060446

Comments

There are no comments at the moment.