// Squares
package Bronze_IV_4;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Ex6887 {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
System.out.printf("The largest square has side length %d.", (int) Math.sqrt(n));
}
}
'백준 풀이 > 자바(Java)' 카테고리의 다른 글
백준 15025 자바 - Judging Moose (0) | 2024.04.28 |
---|---|
백준 14065 자바 - Gorivo (0) | 2024.04.27 |
백준 9699 자바 - RICE SACK (0) | 2024.04.24 |
백준 31614 자바 - 分 (Minutes) (0) | 2024.04.23 |
백준 28938 자바 - Конвейер (0) | 2024.04.22 |