# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1065822 | 2024-08-19T12:02:29 Z | sunboi | Bikeparking (EGOI24_bikeparking) | C++17 | 0 ms | 0 KB |
#include <bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; vector<int> x(n), y(n); for (int i = 0; i < n; i++) cin >> x[i]; for (int i = 0; i < n; i++) cin >> y[i]; ans = x[i] * (n - 1) - x[i]; cout << ans << endl; }