結果

問題 No.1850 Rewrite Product
ユーザー kusagame12kusagame12
提出日時 2023-11-24 20:51:23
言語 Java21
(openjdk 21)
結果
AC  
実行時間 1,013 ms / 2,000 ms
コード長 631 bytes
コンパイル時間 2,363 ms
コンパイル使用メモリ 76,724 KB
実行使用メモリ 74,648 KB
最終ジャッジ日時 2023-11-24 20:51:28
合計ジャッジ時間 4,016 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 138 ms
58,068 KB
testcase_01 AC 1,013 ms
74,648 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        
        int t = sc.nextInt();
        StringBuilder sb = new StringBuilder();
        for(int i = 0 ; i < t ; i++){
            int x = sc.nextInt();
            int y = sc.nextInt();
            if(x >= y || x > 4){
                sb.append("Yes");
            }else{
                sb.append("No");
            }
            if(i != t - 1){
                sb.append("\n");
            }
        }
        
        System.out.println(sb);
        
    }
    
}
0