結果

問題 No.1509 Swap!!
ユーザー convexineqconvexineq
提出日時 2021-05-15 12:44:02
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 218 ms / 2,000 ms
コード長 152 bytes
コンパイル時間 297 ms
コンパイル使用メモリ 82,160 KB
実行使用メモリ 76,776 KB
最終ジャッジ日時 2024-04-14 03:19:15
合計ジャッジ時間 8,469 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
52,664 KB
testcase_01 AC 38 ms
53,392 KB
testcase_02 AC 210 ms
76,500 KB
testcase_03 AC 207 ms
76,396 KB
testcase_04 AC 210 ms
76,436 KB
testcase_05 AC 211 ms
76,372 KB
testcase_06 AC 215 ms
76,776 KB
testcase_07 AC 206 ms
76,536 KB
testcase_08 AC 207 ms
76,520 KB
testcase_09 AC 218 ms
76,708 KB
testcase_10 AC 217 ms
76,520 KB
testcase_11 AC 200 ms
75,944 KB
testcase_12 AC 192 ms
76,400 KB
testcase_13 AC 194 ms
76,172 KB
testcase_14 AC 195 ms
76,368 KB
testcase_15 AC 202 ms
76,556 KB
testcase_16 AC 190 ms
76,204 KB
testcase_17 AC 187 ms
76,580 KB
testcase_18 AC 183 ms
76,216 KB
testcase_19 AC 199 ms
76,200 KB
testcase_20 AC 189 ms
76,148 KB
testcase_21 AC 188 ms
76,512 KB
testcase_22 AC 187 ms
76,288 KB
testcase_23 AC 184 ms
76,456 KB
testcase_24 AC 218 ms
76,184 KB
testcase_25 AC 214 ms
76,516 KB
testcase_26 AC 214 ms
76,636 KB
testcase_27 AC 198 ms
76,424 KB
testcase_28 AC 198 ms
76,624 KB
testcase_29 AC 197 ms
76,064 KB
testcase_30 AC 196 ms
76,132 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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