結果
| 問題 | No.1509 Swap!! |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-05-15 08:51:47 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 152 ms / 2,000 ms |
| + 725µs | |
| コード長 | 179 bytes |
| 記録 | |
| コンパイル時間 | 66 ms |
| コンパイル使用メモリ | 81,356 KB |
| 実行使用メモリ | 84,352 KB |
| 最終ジャッジ日時 | 2026-09-09 01:53:14 |
| 合計ジャッジ時間 | 8,971 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / 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-1 <= n-b:
print("YES")
else:
print("NO")