結果
| 問題 | No.1509 Swap!! |
| コンテスト | |
| ユーザー |
遭難者
|
| 提出日時 | 2021-04-06 22:05:54 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 316 ms / 2,000 ms |
| コード長 | 172 bytes |
| 記録 | |
| コンパイル時間 | 724 ms |
| コンパイル使用メモリ | 20,692 KB |
| 実行使用メモリ | 15,324 KB |
| 最終ジャッジ日時 | 2026-04-04 04:15:46 |
| 合計ジャッジ時間 | 11,068 ms |
|
ジャッジサーバーID (参考情報) |
judge5_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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")
遭難者