結果

問題 No.1509 Swap!!
ユーザー KudeKude
提出日時 2021-05-15 00:06:16
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 236 ms / 2,000 ms
コード長 226 bytes
コンパイル時間 239 ms
コンパイル使用メモリ 82,524 KB
実行使用メモリ 76,884 KB
最終ジャッジ日時 2024-04-10 05:15:59
合計ジャッジ時間 8,431 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
52,200 KB
testcase_01 AC 40 ms
53,448 KB
testcase_02 AC 227 ms
76,248 KB
testcase_03 AC 223 ms
76,516 KB
testcase_04 AC 222 ms
76,312 KB
testcase_05 AC 226 ms
76,388 KB
testcase_06 AC 225 ms
76,664 KB
testcase_07 AC 230 ms
76,664 KB
testcase_08 AC 229 ms
76,636 KB
testcase_09 AC 227 ms
76,884 KB
testcase_10 AC 236 ms
76,184 KB
testcase_11 AC 201 ms
76,240 KB
testcase_12 AC 201 ms
76,472 KB
testcase_13 AC 198 ms
76,384 KB
testcase_14 AC 200 ms
76,312 KB
testcase_15 AC 203 ms
76,268 KB
testcase_16 AC 194 ms
76,336 KB
testcase_17 AC 191 ms
76,280 KB
testcase_18 AC 194 ms
76,452 KB
testcase_19 AC 195 ms
76,264 KB
testcase_20 AC 191 ms
76,596 KB
testcase_21 AC 220 ms
76,800 KB
testcase_22 AC 220 ms
76,736 KB
testcase_23 AC 224 ms
76,308 KB
testcase_24 AC 223 ms
76,712 KB
testcase_25 AC 216 ms
76,528 KB
testcase_26 AC 227 ms
76,344 KB
testcase_27 AC 207 ms
76,456 KB
testcase_28 AC 205 ms
76,476 KB
testcase_29 AC 208 ms
76,660 KB
testcase_30 AC 203 ms
76,600 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import gcd
for _ in range(int(input())):
    n, a, b = map(int, input().split())
    if gcd(a, b) > 1:
        print('NO')
        continue
    if a - 1 + b - 1 < n:
        print('YES')
    else:
        print('NO')
0