結果
| 問題 |
No.1509 Swap!!
|
| コンテスト | |
| ユーザー |
manjuuu_onsen
|
| 提出日時 | 2021-05-14 23:00:54 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 259 bytes |
| コンパイル時間 | 1,334 ms |
| コンパイル使用メモリ | 165,008 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-02 03:38:33 |
| 合計ジャッジ時間 | 7,096 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | WA * 30 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
using ll = long long;
using pint = pair<int,int>;
void solve();
int main()
{
int T;
cin >> T;
while(T--)solve();
}
void solve()
{
ll x, y; cin >> x >> y;
cout << (__gcd(x, y) == 1 ? "YES" : "NO") << endl;
}
manjuuu_onsen