본문 바로가기

Coding Test/백준

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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();

        int n = Integer.parseInt(br.readLine());
        for(int i=0; i<(n/4); i++) {
            sb.append("long ");
        }
        sb.append("int");

        System.out.println(sb);

        br.close();
    }
}