Java/백준
백준 25314번 - 코딩은 체육과목 입니다
내이름효주
2024. 1. 29. 11:24

import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
System.out.println("long ".repeat(n/4) + "int");
sc.close();
}
}
- 이클립스 JavaSE-17버전에서는 repeat가 오류없이 돌아갔는데 JavaSE-1.8버전에서는 repeat에서 계속 오류나서 알아보니 Java 11버전부터 사용가능하다고 함!