| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1359591 | FZ_Laabidi | Bikeparking (EGOI24_bikeparking) | C++20 | 0 ms | 0 KiB |
#include <bits/stdc++.h>
using namespace std;
signed main(){
int n; cin >> n;
vector<int> x(n-2), y(n);
for(int i=0; i<n; i++)cin >> x[i];
for(int i=0; i<n; i++)cin >> y[i];
int u = 0, d = 0;
if(n==1)cout << 0 << endl;
else cout << (n-2)*x[0] << endl
}