# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
286813 | two_sides | Building Bridges (CEOI17_building) | C++17 | 49 ms | 3832 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;
using ll = long long;
struct line {
mutable ll k, m, p;
line(ll k, ll m, ll p = 0): k(k), m(m), p(p) {}
bool operator < (const line &o) const {
return k < o.k;
}
bool operator < (const ll &x) const {
return p < x;
}
};
template <bool type>
struct cht : multiset <line, less <>> {
const ll inf = 1e18;
ll div(ll a, ll b) {
return a / b - ((a ^ b) < 0 && a % b);
}
bool isect(iterator x, iterator y) {
if (y == end()) {
x->p = inf; return 0;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |