# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
351471 | spatarel | Horses (IOI15_horses) | C++17 | 478 ms | 47340 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 <stdio.h>
#include <algorithm>
#include <set>
const int MOD = 1000000007;
const int MAX_N = 500000;
int N;
int X[MAX_N];
long long allProdX = 1;
long long power(long long base, int exp) {
if (exp == 1) {
return base;
} else if (exp % 2 == 0) {
return power(base * base % MOD, exp / 2);
} else {
return power(base, exp - 1) * base % MOD;
}
}
int inv(int value) {
return (int)power(value, MOD - 2);
}
struct Index {
int index;
int maxRangeY;
# | 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... |