[백준/Java] 4101 : 크냐?

SEOP·2024년 6월 15일
0

import java.io.*;
import java.util.Arrays;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new BufferedReader(new InputStreamReader(System.in)));
        BufferedWriter bw = new BufferedWriter(new BufferedWriter(new OutputStreamWriter(System.out)));

        while (true){
            int[] intArr = Arrays.stream(br.readLine().split(" ")).mapToInt(Integer::parseInt).toArray();
            if (intArr[0] == 0 && intArr[1] == 0){
                break;
            }
            if (intArr[0] > intArr[1]){
                bw.write("Yes");
            } else{
                bw.write("No");
            }
            bw.newLine();
        }

        bw.flush();
        bw.close();
    }
}
profile
응애 나 애기 개발자

0개의 댓글