# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
578415 | Alexandruabcde | Potatoes and fertilizers (LMIO19_bulves) | C++14 | 146 ms | 15176 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;
constexpr int NMAX = 5e5 + 5;
typedef long long LL;
struct SlopeTrick {
LL a, b;
priority_queue <LL> *H;
SlopeTrick () {
a = b = 0;
H = new priority_queue<LL>;
}
void operator += (SlopeTrick other) {
a += other.a;
b += other.b;
if (H->size() > other.H->size())
swap(H, other.H);
while (!other.H->empty()) {
H->push(other.H->top());
other.H->pop();
}
}
# | 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... |