File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # [ Bronze V] 크냐? - 4101
2+
3+ [ 문제 링크] ( https://www.acmicpc.net/problem/4101 )
4+
5+ ### 성능 요약
6+
7+ 메모리: 14140 KB, 시간: 132 ms
8+
9+ ### 분류
10+
11+ 구현
12+
13+ ### 제출 일자
14+
15+ 2023년 4월 6일 23:55:41
16+
17+ ### 문제 설명
18+
19+ <p >두 양의 정수가 주어졌을 때, 첫 번째 수가 두 번째 수보다 큰지 구하는 프로그램을 작성하시오.</p >
20+
21+ ### 입력
22+
23+ <p >입력은 여러 개의 테스트 케이스로 이루어져 있다. 각 테스트 케이스는 한 줄로 이루어져 있으며, 두 정수가 주어진다. 두 수는 백만보다 작거나 같은 양의 정수이다. 입력의 마지막 줄에는 0이 두 개 주어진다.</p >
24+
25+ ### 출력
26+
27+ <p >각 테스트 케이스마다, 첫 번째 수가 두 번째 수보다 크면 Yes를, 아니면 No를 한 줄에 하나씩 출력한다.</p >
28+
Original file line number Diff line number Diff line change 1+ 1 19
2+ 4 4
3+ 23 14
4+ 0 0
Original file line number Diff line number Diff line change 1+ No
2+ No
3+ Yes
Original file line number Diff line number Diff line change 1+ import java .io .BufferedReader ;
2+ import java .io .IOException ;
3+ import java .io .InputStreamReader ;
4+
5+ import java .util .StringTokenizer ;
6+
7+ public class Main {
8+
9+ public static void main (String [] args ) throws IOException {
10+
11+ BufferedReader br = new BufferedReader (new InputStreamReader (System .in ));
12+ while (true ) {
13+ StringTokenizer st = new StringTokenizer (br .readLine ());
14+ int temp = Integer .parseInt (st .nextToken ());
15+ int temp2 = Integer .parseInt (st .nextToken ());
16+
17+ if (temp == 0 && temp2 == 0 ) {
18+ break ;
19+ }
20+ if (temp > temp2 ) {
21+ System .out .println ("Yes" );
22+ } else System .out .println ("No" );
23+ }
24+ }
25+ }
You can’t perform that action at this time.
0 commit comments