# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
328718 | dolphingarlic | Roads (CEOI20_roads) | C++14 | 390 ms | 20048 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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... |