# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
537537 | dantoh000 | Planine (COCI21_planine) | C++14 | 353 ms | 50792 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define fi first
#define se second
using namespace std;
typedef long long ll;
typedef pair<ll, ll> ii;
typedef pair<ii, ii> i4;
int n;
ll h;
ii p[1000005];
int Lid[1000005], Rid[1000005];
int ord[1000005];
ll cross(ii x, ii y){
return x.fi*y.se - x.se*y.fi;
}
bool ccw(int a, int b, int c){
if (a == -1) return (p[b].se <= p[c].se);
ii x = ii(p[b].fi - p[a].fi, p[b].se - p[a].se);
ii y = ii(p[c].fi - p[b].fi, p[c].se - p[b].se);
return cross(x,y) > 0ll;
}
bool cw(int a, int b, int c){
if (a == -1) return (p[b].se <= p[c].se);
ii x = ii(p[b].fi - p[a].fi, p[b].se - p[a].se);
ii y = ii(p[c].fi - p[b].fi, p[c].se - p[b].se);
return cross(x,y) < 0ll;
}
ii extrapolate(int a, int b){
ll dy = p[b].se - p[a].se;
ll dx = p[b].fi - p[a].fi;
컴파일 시 표준 에러 (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... |