# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
772261 | radoslav11 | Potatoes and fertilizers (LMIO19_bulves) | C++17 | 277 ms | 40180 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>
#define endl '\n'
typedef long long ll;
using namespace std;
struct slope_trick {
const ll inf = 9223372036854775807ll;
std::multiset < ll > left_set, right_set;
ll height;
slope_trick() {
height = 0;
}
ll get_right() {
if (right_set.empty()) return inf;
return *right_set.begin();
}
ll get_left() {
if (left_set.empty()) return -inf;
return *left_set.rbegin();
}
void add_basic(ll v) {
ll left = get_left(), right = get_right();
# | 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... |