# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
602340 | Bench0310 | Harbingers (CEOI09_harbingers) | C++17 | 140 ms | 23992 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
struct line
{
ll k,n;
line(){}
line(ll a,ll b){k=a;n=b;}
ll eval(ll x){return (k*x+n);}
friend double intersect(line &a,line &b){return (double(b.n-a.n)/(a.k-b.k));}
friend bool ok(line &a,line &b,line &c){return (intersect(a,b)<intersect(b,c));}
};
const int N=100005;
int n;
array<int,3> v[2*N];
int vstart[N];
int ts[N];
int tv[N];
int depth[N];
line trie[N];
int ver[N]; //version of node i
double lim[N];
int p[N][17];
int tcnt=1;
ll res[N];
int add(int a,line l)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |