[ 백준 문제 25314 / 자바 ] 코딩은 체육과목 입니다

2023. 2. 21. 17:58백준/자바

문제 창의적이고 귀엽다

 

나의 정답 :

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();

        sc.close();

        for(int i = 1 ; i <= N/4  ; i++)
        {
            System.out.print("long ");
        }

        System.out.print("int");
    }

}