結果
問題 | No.1850 Rewrite Product |
ユーザー | gr1msl3y |
提出日時 | 2022-02-25 23:11:33 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 476 ms / 2,000 ms |
コード長 | 285 bytes |
コンパイル時間 | 313 ms |
コンパイル使用メモリ | 86,920 KB |
実行使用メモリ | 77,456 KB |
最終ジャッジ日時 | 2023-09-16 18:35:26 |
合計ジャッジ時間 | 1,437 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 70 ms
71,336 KB |
testcase_01 | AC | 476 ms
77,456 KB |
ソースコード
def solve(x, y): if x > 4 or y == 1: return 1 if 1 < x < 5 and y <= x: return 1 else: return 0 def main(): T = int(input()) for _ in range(T): x, y = map(int, input().split()) print('Yes' if solve(x, y) else 'No') main()