# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
328718 | dolphingarlic | Roads (CEOI20_roads) | C++14 | 390 ms | 20048 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>
typedef long long ll;
using namespace std;
struct Point {
ll x, y;
int idx;
};
bool operator<(Point A, Point B) {
if (A.x == B.x) return A.y < B.y;
return A.x < B.x;
}
ostream& operator<<(ostream& out, Point P) {
out << P.x << ' ' << P.y;
return out;
}
struct Seg {
Point p1, p2;
} s[100001];
ll curr_x;
bool operator<(Seg A, Seg B) {
double yA, yB;
if (A.p1.x == A.p2.x) yA = A.p1.y;
else {
double m = double(A.p2.y - A.p1.y) / (A.p2.x - A.p1.x);
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |