結果

問題 No.909 たぴの配置
ユーザー rogi52rogi52
提出日時 2022-09-30 23:02:33
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 449 bytes
コンパイル時間 2,143 ms
コンパイル使用メモリ 200,576 KB
実行使用メモリ 4,876 KB
最終ジャッジ日時 2023-08-24 16:36:13
合計ジャッジ時間 9,362 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 2 ms
4,380 KB
testcase_02 WA -
testcase_03 AC 1 ms
4,376 KB
testcase_04 AC 1 ms
4,380 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 48 ms
4,692 KB
testcase_15 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0; i < (n); i++)
using namespace std;
typedef long long ll;

int main(){
    cin.tie(0);
    ios::sync_with_stdio(0);
    
    int N; cin >> N;
    vector<int> X(N), Y(N);
    rep(i,N) cin >> X[i];
    rep(i,N) cin >> Y[i];
    int ans = 1e9;
    rep(i,N) ans = min(ans, X[i] + Y[i]);

    cout << ans << "\n";
    cout << 0 << "\n";
    rep(i,N) cout << X[i] << "\n";
    cout << ans << "\n";
}
0