Algorithm/SWEA
[SWEA] 1545. 거꾸로 출력해보아요 D1 JAVA
_cpdm_
2021. 3. 16. 11:07
반응형
문제 이해
아이디어
더보기
입력받은 걸 거꾸로 출력하면 된다.
코드
import java.util.*;
import java.io.*;
class Solution {
public static void main(String args[]) throws Exception {
Scanner sc = new Scanner(System.in);
int T = sc.nextInt();
for (int tc = T; tc >= 0; tc--) {
System.out.print(tc+" ");
}
sc.close();
}
}
집사는개발자가되고파
choppadontbiteme.tistory.com
반응형