結果
問題 | No.1509 Swap!! |
ユーザー |
![]() |
提出日時 | 2021-05-18 02:23:38 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 223 ms / 2,000 ms |
コード長 | 362 bytes |
コンパイル時間 | 1,458 ms |
コンパイル使用メモリ | 165,028 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-07 15:56:12 |
合計ジャッジ時間 | 8,693 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 30 |
ソースコード
/** * @FileName a.cpp * @Author kanpurin * @Created 2021.05.18 01:51:55 **/ #include "bits/stdc++.h" using namespace std; typedef long long ll; int main() { int t;cin >> t; while(t--) { ll n,a,b;cin >> n >> a >> b; ll g = __gcd(a,b); if (g == 1 && a-1<=n-b) puts("YES"); else puts("NO"); } return 0; }