結果
問題 | No.1509 Swap!! |
ユーザー |
![]() |
提出日時 | 2021-05-15 12:44:02 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 221 ms / 2,000 ms |
コード長 | 152 bytes |
コンパイル時間 | 303 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 76,920 KB |
最終ジャッジ日時 | 2024-10-03 00:32:47 |
合計ジャッジ時間 | 8,231 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 30 |
ソースコード
from math import gcd T = int(input()) for _ in range(T): n,a,b = map(int,input().split()) print("YES" if a+b <= n+1 and gcd(a,b) == 1 else "NO")