結果
| 問題 |
No.909 たぴの配置
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-10-18 21:24:45 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 732 bytes |
| コンパイル時間 | 1,566 ms |
| コンパイル使用メモリ | 167,784 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-06-25 14:48:54 |
| 合計ジャッジ時間 | 6,538 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 3 WA * 10 |
ソースコード
#include <bits/stdc++.h>
using namespace std::literals::string_literals;
using i64 = std::int_fast64_t;
using std::cout;
using std::endl;
using std::cin;
template<typename T>
std::vector<T> make_v(size_t a){return std::vector<T>(a);}
template<typename T,typename... Ts>
auto make_v(size_t a,Ts... ts){
return std::vector<decltype(make_v<T>(ts...))>(a,make_v<T>(ts...));
}
int main() {
int n; scanf("%d", &n); std::vector<int> x(n), y(n);
for(int i = 0; i < n; i++) scanf("%d", &x[i]);
for(int i = 0; i < n; i++) scanf("%d", &y[i]);
int ans = 1 << 30;
for(int i = 0; i < n; i++) ans = std::min(ans, x[i] + y[i]);
printf("%d\n", ans);
printf("0\n");
for(auto v: x) printf("%d\n", v);
printf("%d\n", ans);
return 0;
}