# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
142542 | imeimi2000 | Strange Device (APIO19_strange_device) | C++17 | 618 ms | 12920 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 <iostream>
#include <algorithm>
#include <vector>
#include <set>
#include <cstdlib>
using namespace std;
typedef long long llong;
typedef pair<llong, llong> pll;
const llong inf = 1e18 + 1;
llong mul(llong x, llong y) {
llong r = 0;
while (y) {
if (x > inf) return inf;
if (y & 1) r += x;
if (r > inf) return inf;
x += x;
y >>= 1;
}
return r;
}
llong gcd(llong x, llong y) {
for (; y; swap(x, y)) x %= y;
return x;
}
set<pll> sp;
void add(llong s, llong e, llong M) {
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |