結果

問題 No.909 たぴの配置
ユーザー hipopohipopo
提出日時 2020-01-11 14:56:30
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 538 bytes
コンパイル時間 1,816 ms
コンパイル使用メモリ 203,468 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-05-03 19:30:46
合計ジャッジ時間 10,461 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 2 ms
6,940 KB
testcase_02 WA -
testcase_03 AC 2 ms
6,940 KB
testcase_04 AC 2 ms
6,944 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 340 ms
6,940 KB
testcase_15 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
}
0