結果
| 問題 | No.1509 Swap!! |
| コンテスト | |
| ユーザー |
とりゐ
|
| 提出日時 | 2022-05-18 00:54:14 |
| 言語 | PyPy3 (7.3.23) |
| 結果 |
AC
|
| 実行時間 | 123 ms / 2,000 ms |
| + 33µs | |
| コード長 | 200 bytes |
| 記録 | |
| コンパイル時間 | 253 ms |
| コンパイル使用メモリ | 95,476 KB |
| 実行使用メモリ | 84,480 KB |
| 最終ジャッジ日時 | 2026-08-28 08:26:01 |
| 合計ジャッジ時間 | 7,364 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 30 |
ソースコード
from sys import stdin
input=lambda :stdin.readline()[:-1]
import math
for _ in range(int(input())):
n,a,b=map(int,input().split())
if math.gcd(a,b)==1 and a+b<=n+1:print('YES')
else:print('NO')
とりゐ