結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
10,880 KB
testcase_01 WA -
testcase_02 AC 394 ms
11,008 KB
testcase_03 AC 394 ms
10,880 KB
testcase_04 AC 378 ms
10,880 KB
testcase_05 AC 386 ms
10,880 KB
testcase_06 AC 383 ms
10,880 KB
testcase_07 AC 370 ms
10,880 KB
testcase_08 AC 381 ms
10,880 KB
testcase_09 AC 376 ms
10,880 KB
testcase_10 AC 368 ms
10,880 KB
testcase_11 AC 415 ms
10,880 KB
testcase_12 AC 419 ms
10,880 KB
testcase_13 AC 413 ms
10,752 KB
testcase_14 AC 409 ms
10,880 KB
testcase_15 AC 406 ms
10,880 KB
testcase_16 AC 410 ms
10,752 KB
testcase_17 AC 407 ms
10,880 KB
testcase_18 AC 428 ms
10,752 KB
testcase_19 AC 404 ms
10,880 KB
testcase_20 AC 402 ms
10,880 KB
testcase_21 AC 367 ms
10,880 KB
testcase_22 AC 380 ms
10,880 KB
testcase_23 AC 384 ms
10,880 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 352 ms
10,880 KB
testcase_28 AC 349 ms
10,880 KB
testcase_29 AC 362 ms
10,880 KB
testcase_30 AC 411 ms
10,880 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):
    print("YES")
  else:
    print("NO")
0