# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
62651 | Nnandi | Building Bridges (CEOI17_building) | C++14 | 1491 ms | 19776 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 INF 100000000000000000.0
using namespace std;
typedef long long ll;
struct Line {
ll a, b; // Y = aX + b
double kp, vp;
Line() {}
Line(ll aa, ll bb) {
a = aa;
b = bb;
}
const bool operator< (Line masik) const {
if(a != masik.a) return a > masik.a;
return b < masik.b;
}
};
double cross(Line e, Line f) {
return (double)(f.b - e.b) / (double)(e.a - f.a);
}
struct Burok {
vector<Line> tab;
bool ord;
Burok() {
tab.resize(0);
ord = false;
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |