728x90
import java.util.Scanner;
import java.io.FileInputStream;
class d1_1545
{
public static void main(String args[]) throws Exception
{
//input 파일 읽기
System.setIn(new FileInputStream("res/input.txt"));
Scanner sc = new Scanner(System.in);
//정수 num 받아서 num->0까지 출력
int num = sc.nextInt();
int tc = num;
for(int test_case = 0; test_case <= tc; test_case++)
{
System.out.print(num+" ");
num--;
}
}
}
728x90
'알고리즘 > SWEA' 카테고리의 다른 글
[java][swea][d4] 1210. Ladder1 (0) | 2022.02.09 |
---|---|
[java][swea][d3] 1210. 퍼펙트셔플 (0) | 2022.02.09 |
[java][swea][d1] 2072. 홀수만 더하기 (0) | 2022.01.22 |
[java][swea][d1] 2071. 평균값 구하기 (0) | 2022.01.22 |
[java][swea][d1] 2019. 더블더블 (0) | 2022.01.22 |