# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1156727 | nikolashami | Harbingers (CEOI09_harbingers) | C++20 | 163 ms | 107516 KiB |
#include<bits/stdc++.h>
using namespace std;
using ll=long long;
const ll N=1e5+4;
vector<array<int,2>>g[N];
ll S[N],V[N],D[N],P[N],F[N],n;
struct Line{
ll k=0,nn=0,ac=0;
ll f(ll x){return(k*x)+nn;}
};
struct Pers_Li_Chao{
vector<Line>st;
vector<ll>lc,rc,root;
ll nn,nd;
void ch(ll sz){
nn=sz;
nd=1;
st.clear();
lc.clear();
rc.clear();
root.clear();
st.resize(21*sz+5);
lc.resize(21*sz+5);
rc.resize(21*sz+5);
root.resize(5+sz);
root[0]=1;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |