結果
| 問題 |
No.1509 Swap!!
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-05-15 08:51:47 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 229 ms / 2,000 ms |
| コード長 | 179 bytes |
| コンパイル時間 | 352 ms |
| コンパイル使用メモリ | 81,916 KB |
| 実行使用メモリ | 77,004 KB |
| 最終ジャッジ日時 | 2024-10-02 15:26:20 |
| 合計ジャッジ時間 | 10,488 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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")