# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
760457 | alexander707070 | Meetings (IOI18_meetings) | C++14 | 3631 ms | 634740 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>
#define MAXN 100007
#define MAXH 21
using namespace std;
struct event{
int pos;
int val;
int from;
int type;
inline friend bool operator < (event fr,event sc){
return fr.pos<sc.pos;
}
};
const int inf=1e9+7;
int n,h[MAXN],q,l,r,pt,pr[MAXN],nxt[MAXN],lt,rt,lpos,rpos;
long long curr;
vector< pair<int,int> > st;
vector<long long> ans;
vector<event> w;
long long calc[MAXN][MAXH+1][MAXH+1];
void precalc(){
st.clear(); st.push_back({inf,0});
for(int i=1;i<=n;i++){
Compilation message (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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |