結果
| 問題 |
No.909 たぴの配置
|
| コンテスト | |
| ユーザー |
shop_one
|
| 提出日時 | 2019-10-18 22:01:22 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 354 ms / 3,000 ms |
| コード長 | 445 bytes |
| コンパイル時間 | 756 ms |
| コンパイル使用メモリ | 59,612 KB |
| 実行使用メモリ | 6,656 KB |
| 最終ジャッジ日時 | 2024-06-25 16:57:42 |
| 合計ジャッジ時間 | 7,912 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 |
ソースコード
#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
typedef long long ll;
typedef pair<ll,ll> P;
signed main(){
ll n,ans=10000000000000;
cin >> n;
ll x[n],y[n],tapi[n];
for(int i=0;i<n;i++){
cin >> x[i];
}
for(int i=0;i<n;i++){
cin >> y[i];
ans = min(x[i]+y[i],ans);
}
cout <<ans << endl;
cout << "0\n";
for(int i=0;i<n;i++){
cout << min(x[i],ans)<<endl;
}
cout << ans << endl;
}
shop_one