結果
| 問題 | No.909 たぴの配置 |
| コンテスト | |
| ユーザー |
hipopo
|
| 提出日時 | 2020-01-11 14:56:30 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 538 bytes |
| 記録 | |
| コンパイル時間 | 2,732 ms |
| コンパイル使用メモリ | 194,136 KB |
| 最終ジャッジ日時 | 2025-01-08 17:07:01 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 3 WA * 10 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int n;
cin >> n;
vector<int> x(n), y(n);
for (int i = 0; i < n; i++) {
cin >> x.at(i);
}
for (int i = 0; i < n; i++) {
cin >> y.at(i);
}
int min_d = 2 * (int)1e6;
for (int i = 0; i < n; i++) {
min_d = min(min_d, x.at(i) + y.at(i));
}
cout << min_d << endl;
cout << 0 << endl;
for (int i = 0; i < n; i++) {
cout << x.at(i) << endl;
}
cout << min_d << endl;
}
hipopo