結果

問題 No.1509 Swap!!
ユーザー mine691mine691
提出日時 2021-05-14 23:19:10
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 172 bytes
コンパイル時間 80 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2024-04-10 03:28:59
合計ジャッジ時間 14,240 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,880 KB
testcase_01 WA -
testcase_02 AC 412 ms
10,880 KB
testcase_03 AC 392 ms
10,880 KB
testcase_04 AC 410 ms
10,880 KB
testcase_05 AC 406 ms
11,008 KB
testcase_06 AC 408 ms
10,752 KB
testcase_07 AC 399 ms
10,752 KB
testcase_08 AC 402 ms
10,880 KB
testcase_09 AC 409 ms
10,880 KB
testcase_10 AC 409 ms
10,752 KB
testcase_11 AC 451 ms
10,880 KB
testcase_12 AC 452 ms
10,880 KB
testcase_13 AC 440 ms
10,880 KB
testcase_14 AC 450 ms
10,880 KB
testcase_15 AC 446 ms
10,752 KB
testcase_16 AC 450 ms
10,880 KB
testcase_17 AC 447 ms
10,752 KB
testcase_18 AC 435 ms
10,752 KB
testcase_19 AC 452 ms
10,880 KB
testcase_20 AC 444 ms
10,752 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 392 ms
10,880 KB
testcase_25 AC 407 ms
10,880 KB
testcase_26 AC 398 ms
10,752 KB
testcase_27 AC 367 ms
10,880 KB
testcase_28 AC 365 ms
10,880 KB
testcase_29 AC 368 ms
10,752 KB
testcase_30 AC 455 ms
10,752 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 + 2):
    print("YES")
  else:
    print("NO")
0