結果
問題 | No.909 たぴの配置 |
ユーザー |
|
提出日時 | 2022-09-30 23:03:16 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 53 ms / 3,000 ms |
コード長 | 459 bytes |
コンパイル時間 | 1,854 ms |
コンパイル使用メモリ | 195,160 KB |
最終ジャッジ日時 | 2025-02-07 19:46:04 |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 |
ソースコード
#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 << min(X[i], ans) << "\n";cout << ans << "\n";}