結果

問題 No.1509 Swap!!
ユーザー とりゐとりゐ
提出日時 2022-05-18 00:53:43
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 261 ms / 2,000 ms
コード長 141 bytes
コンパイル時間 319 ms
コンパイル使用メモリ 87,068 KB
実行使用メモリ 78,896 KB
最終ジャッジ日時 2023-10-14 04:28:15
合計ジャッジ時間 13,768 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,312 KB
testcase_01 AC 74 ms
71,580 KB
testcase_02 AC 261 ms
78,520 KB
testcase_03 AC 252 ms
78,364 KB
testcase_04 AC 256 ms
78,836 KB
testcase_05 AC 252 ms
78,488 KB
testcase_06 AC 256 ms
78,844 KB
testcase_07 AC 253 ms
78,612 KB
testcase_08 AC 254 ms
78,664 KB
testcase_09 AC 256 ms
78,748 KB
testcase_10 AC 257 ms
78,896 KB
testcase_11 AC 229 ms
78,484 KB
testcase_12 AC 231 ms
78,368 KB
testcase_13 AC 229 ms
78,568 KB
testcase_14 AC 229 ms
78,672 KB
testcase_15 AC 227 ms
78,272 KB
testcase_16 AC 224 ms
78,372 KB
testcase_17 AC 219 ms
78,500 KB
testcase_18 AC 220 ms
78,552 KB
testcase_19 AC 222 ms
78,636 KB
testcase_20 AC 225 ms
78,592 KB
testcase_21 AC 252 ms
78,464 KB
testcase_22 AC 244 ms
78,500 KB
testcase_23 AC 252 ms
78,612 KB
testcase_24 AC 247 ms
78,560 KB
testcase_25 AC 247 ms
78,444 KB
testcase_26 AC 250 ms
78,452 KB
testcase_27 AC 233 ms
78,600 KB
testcase_28 AC 231 ms
78,476 KB
testcase_29 AC 232 ms
78,084 KB
testcase_30 AC 227 ms
78,612 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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