# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
587504 | benson1029 | Horses (IOI15_horses) | C++14 | 525 ms | 74792 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 "horses.h"
#include<bits/stdc++.h>
using namespace std;
long long mod = 1e9+7;
long double seglog[2000005];
long long segmul[2000005];
long double lzylog[2000005];
long long lzymul[2000005];
int n;
long long x[500005], y[500005];
long long fpw(long long n, long long p) {
if(p==0) return 1LL;
long long t = fpw(n, p/2);
t = (t*t) % mod;
if(p%2) t = (t*n) % mod;
return t;
}
long long inv(long long n) {
return fpw(n, mod-2);
}
void push(int x) {
seglog[x*2] += lzylog[x];
seglog[x*2+1] += lzylog[x];
lzylog[x*2] += lzylog[x];
lzylog[x*2+1] += lzylog[x];
lzylog[x] = 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... |