結果
| 問題 |
No.909 たぴの配置
|
| コンテスト | |
| ユーザー |
kyoprouno
|
| 提出日時 | 2019-12-17 22:32:22 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 504 bytes |
| コンパイル時間 | 1,688 ms |
| コンパイル使用メモリ | 169,676 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2024-07-04 18:49:02 |
| 合計ジャッジ時間 | 11,085 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 13 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
int n;
cin >> n;
vector<int> x(n);
vector<int> y(n);
vector<long long> z(n);
long long d=1000000000;
for(int i=0;i<n;i++){
cin >> x[i];
cin >> y[i];
z[i]=x[i]+y[i];
d=min(d,z[i]);
}
cout << 0 << endl;
for(int i=0;i<n;i++){
if(x[i]>d){
cout << d << endl;
}
else{
cout << x[i] << endl;
}
}
cout << d << endl;
}
kyoprouno