結果

問題 No.1509 Swap!!
ユーザー KudeKude
提出日時 2021-05-15 00:00:34
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 222 bytes
コンパイル時間 265 ms
コンパイル使用メモリ 82,404 KB
実行使用メモリ 76,940 KB
最終ジャッジ日時 2024-04-10 05:08:03
合計ジャッジ時間 8,206 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
52,488 KB
testcase_01 WA -
testcase_02 AC 229 ms
76,396 KB
testcase_03 AC 224 ms
76,576 KB
testcase_04 AC 230 ms
76,460 KB
testcase_05 AC 227 ms
76,192 KB
testcase_06 AC 229 ms
76,756 KB
testcase_07 AC 228 ms
76,940 KB
testcase_08 AC 228 ms
76,380 KB
testcase_09 AC 230 ms
76,580 KB
testcase_10 AC 228 ms
76,448 KB
testcase_11 AC 201 ms
76,252 KB
testcase_12 AC 202 ms
76,268 KB
testcase_13 AC 200 ms
76,608 KB
testcase_14 AC 200 ms
76,656 KB
testcase_15 AC 200 ms
76,392 KB
testcase_16 AC 193 ms
76,328 KB
testcase_17 AC 191 ms
76,288 KB
testcase_18 AC 192 ms
76,120 KB
testcase_19 AC 194 ms
76,280 KB
testcase_20 AC 192 ms
76,780 KB
testcase_21 AC 222 ms
76,912 KB
testcase_22 AC 221 ms
76,872 KB
testcase_23 AC 224 ms
76,472 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 204 ms
76,212 KB
testcase_28 AC 205 ms
76,252 KB
testcase_29 AC 204 ms
76,244 KB
testcase_30 AC 203 ms
76,204 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 < n:
        print('YES')
    else:
        print('NO')
0