# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
744339 | HamletPetrosyan | Strange Device (APIO19_strange_device) | C++17 | 643 ms | 63808 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>
using namespace std;
#define all(a) (a).begin(), (a).end()
#define add push_back
#define pll pair<long long, long long>
#define ll long long
#define fr first
#define sc second
const int N = 1e6 + 5;
ll n, a, b;
ll k, h;
pll rng[N];
vector<pll> v;
void add_range(ll x, ll y){
if(x <= y){
v.add({x, 0});
v.add({y, 1});
}
else {
v.add({x, 0});
v.add({h - 1, 1});
v.add({0, 0});
v.add({y, 1});
}
}
# | 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... |