結果

問題 No.1509 Swap!!
ユーザー mine691mine691
提出日時 2021-04-07 10:38:04
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 258 ms / 2,000 ms
コード長 172 bytes
コンパイル時間 227 ms
コンパイル使用メモリ 87,224 KB
実行使用メモリ 79,044 KB
最終ジャッジ日時 2023-10-11 09:25:19
合計ジャッジ時間 9,718 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
71,416 KB
testcase_01 AC 67 ms
71,692 KB
testcase_02 AC 254 ms
78,700 KB
testcase_03 AC 252 ms
78,632 KB
testcase_04 AC 249 ms
79,040 KB
testcase_05 AC 244 ms
78,832 KB
testcase_06 AC 247 ms
78,864 KB
testcase_07 AC 248 ms
79,012 KB
testcase_08 AC 244 ms
78,724 KB
testcase_09 AC 249 ms
79,044 KB
testcase_10 AC 258 ms
79,000 KB
testcase_11 AC 232 ms
78,752 KB
testcase_12 AC 230 ms
78,564 KB
testcase_13 AC 230 ms
78,576 KB
testcase_14 AC 230 ms
78,568 KB
testcase_15 AC 232 ms
78,848 KB
testcase_16 AC 223 ms
78,768 KB
testcase_17 AC 228 ms
78,824 KB
testcase_18 AC 218 ms
78,440 KB
testcase_19 AC 226 ms
78,628 KB
testcase_20 AC 221 ms
78,552 KB
testcase_21 AC 240 ms
78,624 KB
testcase_22 AC 236 ms
78,716 KB
testcase_23 AC 250 ms
78,784 KB
testcase_24 AC 238 ms
78,588 KB
testcase_25 AC 239 ms
78,612 KB
testcase_26 AC 240 ms
78,680 KB
testcase_27 AC 225 ms
78,576 KB
testcase_28 AC 227 ms
78,580 KB
testcase_29 AC 228 ms
78,732 KB
testcase_30 AC 223 ms
78,612 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 + b <= n + 1):
    print("YES")
  else:
    print("NO")
0