結果

問題 No.1509 Swap!!
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2021-05-15 08:51:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 228 ms / 2,000 ms
コード長 179 bytes
コンパイル時間 331 ms
コンパイル使用メモリ 82,540 KB
実行使用メモリ 76,928 KB
最終ジャッジ日時 2024-04-10 13:22:57
合計ジャッジ時間 8,938 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
52,128 KB
testcase_01 AC 38 ms
53,564 KB
testcase_02 AC 228 ms
76,928 KB
testcase_03 AC 195 ms
76,532 KB
testcase_04 AC 203 ms
76,508 KB
testcase_05 AC 194 ms
76,476 KB
testcase_06 AC 203 ms
76,600 KB
testcase_07 AC 194 ms
76,804 KB
testcase_08 AC 195 ms
76,520 KB
testcase_09 AC 191 ms
76,496 KB
testcase_10 AC 197 ms
76,520 KB
testcase_11 AC 185 ms
76,656 KB
testcase_12 AC 176 ms
76,512 KB
testcase_13 AC 174 ms
76,392 KB
testcase_14 AC 172 ms
76,452 KB
testcase_15 AC 171 ms
76,300 KB
testcase_16 AC 164 ms
76,196 KB
testcase_17 AC 170 ms
76,452 KB
testcase_18 AC 176 ms
76,540 KB
testcase_19 AC 164 ms
76,452 KB
testcase_20 AC 166 ms
76,616 KB
testcase_21 AC 189 ms
76,868 KB
testcase_22 AC 188 ms
76,860 KB
testcase_23 AC 188 ms
76,464 KB
testcase_24 AC 204 ms
76,412 KB
testcase_25 AC 188 ms
76,416 KB
testcase_26 AC 189 ms
76,320 KB
testcase_27 AC 176 ms
76,520 KB
testcase_28 AC 187 ms
76,292 KB
testcase_29 AC 174 ms
76,688 KB
testcase_30 AC 175 ms
76,244 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
t = int(input())
for _ in range(t):
    n,a,b = map(int,input().split())

    if math.gcd(a,b) == 1 and a-1 <= n-b:
        print("YES")

    else:
        print("NO")
0