結果

問題 No.1509 Swap!!
ユーザー KudeKude
提出日時 2021-05-14 23:48:34
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 219 bytes
コンパイル時間 270 ms
コンパイル使用メモリ 82,580 KB
実行使用メモリ 77,320 KB
最終ジャッジ日時 2024-04-10 04:39:41
合計ジャッジ時間 8,396 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
52,604 KB
testcase_01 WA -
testcase_02 AC 223 ms
76,392 KB
testcase_03 AC 230 ms
76,380 KB
testcase_04 AC 228 ms
76,588 KB
testcase_05 AC 224 ms
76,500 KB
testcase_06 AC 225 ms
76,976 KB
testcase_07 AC 226 ms
76,636 KB
testcase_08 AC 224 ms
76,888 KB
testcase_09 AC 227 ms
76,536 KB
testcase_10 AC 225 ms
76,440 KB
testcase_11 AC 202 ms
76,940 KB
testcase_12 AC 203 ms
76,652 KB
testcase_13 AC 199 ms
76,208 KB
testcase_14 AC 199 ms
76,240 KB
testcase_15 AC 202 ms
76,588 KB
testcase_16 AC 192 ms
76,672 KB
testcase_17 AC 193 ms
76,052 KB
testcase_18 AC 193 ms
76,200 KB
testcase_19 AC 192 ms
76,384 KB
testcase_20 AC 194 ms
76,412 KB
testcase_21 AC 221 ms
76,628 KB
testcase_22 AC 217 ms
76,792 KB
testcase_23 AC 226 ms
76,592 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 205 ms
76,512 KB
testcase_28 AC 200 ms
76,264 KB
testcase_29 AC 205 ms
76,164 KB
testcase_30 AC 207 ms
76,664 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 n - b >= a:
        print('YES')
    else:
        print('NO')
0