結果

問題 No.1509 Swap!!
ユーザー convexineqconvexineq
提出日時 2021-05-14 23:44:43
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 244 ms / 2,000 ms
コード長 215 bytes
コンパイル時間 428 ms
コンパイル使用メモリ 82,300 KB
実行使用メモリ 77,104 KB
最終ジャッジ日時 2024-04-10 04:30:24
合計ジャッジ時間 8,830 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
52,376 KB
testcase_01 AC 43 ms
53,768 KB
testcase_02 AC 234 ms
77,048 KB
testcase_03 AC 237 ms
76,556 KB
testcase_04 AC 234 ms
76,492 KB
testcase_05 AC 240 ms
76,624 KB
testcase_06 AC 234 ms
77,104 KB
testcase_07 AC 244 ms
76,492 KB
testcase_08 AC 233 ms
77,060 KB
testcase_09 AC 237 ms
76,760 KB
testcase_10 AC 236 ms
76,988 KB
testcase_11 AC 207 ms
76,244 KB
testcase_12 AC 215 ms
76,800 KB
testcase_13 AC 211 ms
76,608 KB
testcase_14 AC 204 ms
76,612 KB
testcase_15 AC 205 ms
76,360 KB
testcase_16 AC 195 ms
76,376 KB
testcase_17 AC 196 ms
76,988 KB
testcase_18 AC 198 ms
75,988 KB
testcase_19 AC 198 ms
76,652 KB
testcase_20 AC 198 ms
76,332 KB
testcase_21 AC 224 ms
76,316 KB
testcase_22 AC 226 ms
76,528 KB
testcase_23 AC 234 ms
76,360 KB
testcase_24 AC 226 ms
76,524 KB
testcase_25 AC 230 ms
75,988 KB
testcase_26 AC 233 ms
76,944 KB
testcase_27 AC 208 ms
76,256 KB
testcase_28 AC 217 ms
76,456 KB
testcase_29 AC 209 ms
76,524 KB
testcase_30 AC 212 ms
76,320 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import gcd
def check(n,a,b):
    if gcd(a,b) > 1:
        return 0
    return a+b <= n+1

T = int(input())
for _ in range(T):
    n,a,b = map(int,input().split())
    print("YES" if check(n,a,b) else "NO")
0