結果
問題 |
No.186 中華風 (Easy)
|
ユーザー |
|
提出日時 | 2022-08-25 04:20:33 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 439 bytes |
コンパイル時間 | 3,990 ms |
コンパイル使用メモリ | 252,124 KB |
最終ジャッジ日時 | 2025-01-31 03:54:48 |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 21 WA * 2 |
ソースコード
#include<bits/stdc++.h> using namespace std; #include<atcoder/all> using namespace atcoder; using ll = long long; int n; vector<ll> a; vector<ll> b; void solve(){ auto p = crt(a,b); if(p.first==0&&p.second == 0){ cout<<-1<<endl; }else{ cout<<p.first<<endl; } } signed main(){ cin.tie(nullptr); ios::sync_with_stdio(false); n =3; a = vector<ll>(n); b = vector<ll>(n); for(int i = 0;i<n;i++)cin >> a[i] >> b[i]; solve(); }