mirror of
https://github.com/renbaoshuo/202401-programming-assignments.git
synced 2024-12-16 15:44:39 +00:00
23 lines
252 B
C
23 lines
252 B
C
#include <stdio.h>
|
|
|
|
int main() {
|
|
int n;
|
|
|
|
while (1) {
|
|
scanf("%d", &n);
|
|
|
|
if (n >= 1000) {
|
|
break;
|
|
}
|
|
}
|
|
|
|
int i = 0;
|
|
while (i * i <= n) {
|
|
i++;
|
|
}
|
|
|
|
printf("%d\n", i - 1);
|
|
|
|
return 0;
|
|
}
|