# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
908132 | 2024-01-16T08:23:02 Z | allin27x | Horses (IOI15_horses) | C++17 | 0 ms | 0 KB |
#include <bits/stdc++.h> using namespace std; #define int long long const int mod = 1e9+7; signed init(signed n, signed x[], signed y[]){ int res = 0; int p = 1; for (int i=0; i<n; i++){ p*=x[i]; res = max(res, y[i]*p); } return res % mod; } signed updateX(signed pos, signed val); signed updateY(signed pos, signed val);