문제 출처 https://www.acmicpc.net/problem/2742
내가 작성한 코드
import java.io.IOException;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
public class Main {
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
int n = Integer.parseInt(br.readLine()); //int형으로 변환
for(int i=n; i>0; i--) {
bw.write(i +"\n");
}
bw.flush();
bw.close();
}
}