# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
992381 | four_specks | Building Bridges (CEOI17_building) | C++17 | 45 ms | 8948 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;
long fl_div(long x, long y) {
return x / y - ((x ^ y) < 0 && x % y);
}
struct LineContainer {
struct Line {
long m, c;
mutable long p;
bool operator<(const Line &line) const {
return m < line.m || (m == line.m && c < line.c);
}
bool operator<(long x) const {
return p < x;
}
};
static constexpr long inf = LONG_MAX;
using SetType = set<Line, less<>>;
SetType lines;
bool isect(SetType::iterator it) {
if (next(it) == lines.end()) {
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |