문제링크
https://www.acmicpc.net/problem/4101
package BOJ;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main_4101 {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
while(true){
StringTokenizer st = new StringTokenizer(br.readLine());
int num1 = Integer.parseInt(st.nextToken());
int num2 = Integer.parseInt(st.nextToken());
if(num1 == 0 && num2 == 0) break;
if(num1 > num2) System.out.println("Yes");
else System.out.println("No");
}
}
}
'알고리즘 > 백준' 카테고리의 다른 글
[Python]2231_분해합 (0) | 2022.04.26 |
---|---|
[Python]2798_블랙잭 (0) | 2022.04.26 |
[JAVA] 백준_1926_그림 (0) | 2021.11.16 |
[JAVA]백준_11909_배열탈출 (0) | 2021.10.18 |
[JAVA]백준_2933_미네랄 (0) | 2021.09.14 |