~/algor $ cat problems/while-kvadratidan-oshmaydigan-son
Largest number with square at most n
Easy
1000 ms
64 MB
26%
A positive integer $n$ is given. Find the largest integer $k$ satisfying the inequality:
$$k^{2} \le n$$
Input
One integer $n$.
Output
One integer — $k$.
Note
$1 \le n \le 10^{9}$
Examples
Input #1
26
Output #1
5
Input #2
16
Output #2
4