結果
| 問題 |
No.1509 Swap!!
|
| コンテスト | |
| ユーザー |
🍮かんプリン
|
| 提出日時 | 2021-05-18 01:45:23 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 463 bytes |
| コンパイル時間 | 1,460 ms |
| コンパイル使用メモリ | 166,584 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-07 14:56:48 |
| 合計ジャッジ時間 | 10,196 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 6 WA * 24 |
ソースコード
/**
* @FileName a.cpp
* @Author kanpurin
* @Created 2021.05.18 01:45:19
**/
#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) {
puts("NO");
continue;
}
if (a > b) swap(a,b);
if (2*a - n > 0) puts("NO");
else puts("YES");
}
return 0;
}
🍮かんプリン