# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1004566 | vjudge1 | Horses (IOI15_horses) | C++17 | 20 ms | 6180 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
/// author: LilPluton auuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
#define OPT ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define intt long long
#define ll long long
#define pb push_back
#define arr array
#define vll vector<int>
#define fi first
#define se second
#define rep(i,j,k) for(int i = j; i <= k; ++i)
#define all(a) a.begin(),a.end()
#define pii pair<int,int>
#define endll '\n'
using namespace std;
const ll INF = 1e18;
const int N = 305 * 305;
const int md = 1e9 + 7;
int init(int n,int x[],int y[])
{
ll p = 1, ans = 0;
for(int i = 0; i < n; ++i)
{
p *= x[i];
ans = max(ans, p * y[i] % md);
p %= md;
}
return ans;
}
int updateX(int pos,int val)
{
return 0;
}
int updateY(int pos,int val)
{
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |