시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 1349 519 438 40.973%

문제

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

입력

첫째 줄에 정수 n이 주어진다. (0<=n<2^63)

출력

첫째 줄에 q^2 >= n인 가장 작은 음이 아닌 정수 q를 출력한다.

예제 입력 1

122333444455555

예제 출력 1

11060446

힌트

W3sicHJvYmxlbV9pZCI6IjI0MTciLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJcdWM4MTVcdWMyMTggXHVjODFjXHVhY2YxXHVhZGZjIiwiZGVzY3JpcHRpb24iOiI8cD5cdWM4MTVcdWMyMThcdWFjMDAgXHVjOGZjXHVjNWI0XHVjOWMwXHViYTc0LCBcdWFkZjggXHVjMjE4XHVjNzU4IFx1YzgxNVx1YzIxOCBcdWM4MWNcdWFjZjFcdWFkZmNcdWM3NDQgXHVhZDZjXHVkNTU4XHViMjk0IFx1ZDUwNFx1Yjg1Y1x1YWRmOFx1YjdhOFx1Yzc0NCBcdWM3OTFcdWMxMzFcdWQ1NThcdWMyZGNcdWM2MjQuPFwvcD4iLCJpbnB1dCI6IjxwPlx1Y2NhYlx1YzlmOCBcdWM5MDRcdWM1ZDAgXHVjODE1XHVjMjE4IG5cdWM3NzQgXHVjOGZjXHVjNWI0XHVjOWM0XHViMmU0LiAoMCZsdDs9biZsdDsyXjYzKTxcL3A+Iiwib3V0cHV0IjoiPHA+XHVjY2FiXHVjOWY4IFx1YzkwNFx1YzVkMCBxXjIgJmd0Oz0gblx1Yzc3OCBcdWFjMDBcdWM3YTUgXHVjNzkxXHVjNzQwIFx1Yzc0Y1x1Yzc3NCBcdWM1NDRcdWIyY2MgXHVjODE1XHVjMjE4IHFcdWI5N2MgXHVjZDljXHViODI1XHVkNTVjXHViMmU0LjxcL3A+IiwiaGludCI6IiIsIm9yaWdpbmFsIjoiMCIsInByb2JsZW1fbGFuZ19jb2RlIjoiXHVkNTVjXHVhZDZkXHVj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