結果

問題 No.909 たぴの配置
ユーザー furafura
提出日時 2020-05-05 17:43:47
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 63 ms / 3,000 ms
コード長 372 bytes
コンパイル時間 2,014 ms
コンパイル使用メモリ 199,000 KB
実行使用メモリ 4,916 KB
最終ジャッジ日時 2023-09-09 05:22:15
合計ジャッジ時間 5,483 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 2 ms
4,380 KB
testcase_02 AC 1 ms
4,380 KB
testcase_03 AC 2 ms
4,380 KB
testcase_04 AC 2 ms
4,380 KB
testcase_05 AC 59 ms
4,628 KB
testcase_06 AC 62 ms
4,616 KB
testcase_07 AC 57 ms
4,484 KB
testcase_08 AC 61 ms
4,564 KB
testcase_09 AC 63 ms
4,628 KB
testcase_10 AC 58 ms
4,380 KB
testcase_11 AC 58 ms
4,428 KB
testcase_12 AC 59 ms
4,748 KB
testcase_13 AC 61 ms
4,916 KB
testcase_14 AC 58 ms
4,436 KB
testcase_15 AC 58 ms
4,428 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

#define rep(i,n) for(int i=0;i<(n);i++)

using namespace std;

const int INF=1<<29;

int main(){
	int n; scanf("%d",&n);
	vector<int> x(n),y(n);
	rep(i,n) scanf("%d",&x[i]);
	rep(i,n) scanf("%d",&y[i]);

	int mn=INF;
	rep(i,n) mn=min(mn,x[i]+y[i]);

	printf("%d\n0\n",mn);
	rep(i,n) printf("%d\n",min(x[i],mn));
	printf("%d\n",mn);

	return 0;
}
0