結果
| 問題 | No.1509 Swap!! |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2021-04-06 22:05:54 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 314 ms / 2,000 ms |
| + 99µs | |
| コード長 | 172 bytes |
| 記録 | |
| コンパイル時間 | 288 ms |
| コンパイル使用メモリ | 21,536 KB |
| 実行使用メモリ | 15,992 KB |
| 最終ジャッジ日時 | 2026-08-26 01:16:54 |
| 合計ジャッジ時間 | 13,159 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 30 |
ソースコード
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")