結果
| 問題 |
No.1509 Swap!!
|
| コンテスト | |
| ユーザー |
umezo
|
| 提出日時 | 2021-05-14 23:33:13 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 328 bytes |
| コンパイル時間 | 1,828 ms |
| コンパイル使用メモリ | 193,504 KB |
| 最終ジャッジ日時 | 2025-01-21 12:24:57 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 6 WA * 24 |
ソースコード
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ALL(v) v.begin(), v.end()
typedef long long ll;
#include <bits/stdc++.h>
using namespace std;
int main(){
int t;
cin>>t;
while(t--){
ll n,a,b;
cin>>n>>a>>b;
if(gcd(a,b)==1) cout<<"YES"<<endl;
else cout<<"NO"<<endl;
}
return 0;
}
umezo