結果
| 問題 |
No.186 中華風 (Easy)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-09-20 11:06:05 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 410 bytes |
| コンパイル時間 | 3,942 ms |
| コンパイル使用メモリ | 280,140 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-20 11:06:16 |
| 合計ジャッジ時間 | 4,746 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 23 |
ソースコード
#include<bits/stdc++.h>
#include<atcoder/math>
using namespace std;
int main() {
int N = 3;
vector<long long> X(N), Y(N);
for (int i = 0; i < N; i++) {
cin >> X[i] >> Y[i];
}
pair<long long, long long> P = atcoder::crt(X, Y);
long long ans = P.first;
if (P.first == 0) ans = P.second;
if (P == make_pair(0LL, 0LL)) {
ans = -1;
}
cout << P.first << ' ' << P.second << endl;
cout << ans << endl;
}