結果
問題 |
No.909 たぴの配置
|
ユーザー |
![]() |
提出日時 | 2019-10-17 21:27:42 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 631 bytes |
コンパイル時間 | 1,810 ms |
コンパイル使用メモリ | 194,568 KB |
最終ジャッジ日時 | 2025-01-07 22:21:50 |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 2 RE * 11 |
ソースコード
#include <bits/stdc++.h> using namespace std; using int64 = long long; int main(){ int n; cin >> n; assert(1 <= n && n <= 100000); vector<int64> x(n), y(n); for(int i = 0; i < n; i++){ cin >> x[i]; assert(0 <= x[i] && x[i] <= 1000000); } for(int i = 0; i < n; i++){ cin >> y[i]; assert(0 <= y[i] && y[i] <= 1000000); } int64 MIN = x[0] + y[0]; for(int i = 1; i < n; i++) MIN = min(MIN, x[i] + y[i]); cout << MIN << endl << 1e17 << endl; for(int i = 0; i < n; i++) cout << min(1e17 + x[i], 1e17 + MIN - y[i]) << endl; cout << 1e17 + MIN << endl; }