結果
| 問題 | No.1509 Swap!! |
| コンテスト | |
| ユーザー |
mine691
|
| 提出日時 | 2021-05-14 23:19:10 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 172 bytes |
| 記録 | |
| コンパイル時間 | 471 ms |
| コンパイル使用メモリ | 20,784 KB |
| 実行使用メモリ | 15,452 KB |
| 最終ジャッジ日時 | 2026-04-18 14:46:20 |
| 合計ジャッジ時間 | 13,572 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 26 WA * 4 |
ソースコード
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")
mine691