結果

問題 No.1850 Rewrite Product
ユーザー 👑 colognecologne
提出日時 2022-02-25 21:22:51
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 998 ms / 2,000 ms
コード長 394 bytes
コンパイル時間 813 ms
コンパイル使用メモリ 10,716 KB
実行使用メモリ 7,932 KB
最終ジャッジ日時 2023-09-16 15:57:18
合計ジャッジ時間 2,156 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,824 KB
testcase_01 AC 998 ms
7,932 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    T = int(input())
    for i in range(T):
        x, y = map(int, input().split())
        if x == 1 and y > 1:
            print('No')
        elif x == 2 and y > 2:
            print('No')
        elif x == 3 and y > 3:
            print('No')
        elif x == 4 and y > 4:
            print('No')
        else:
            print('Yes')


if __name__ == '__main__':
    main()
0