# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
628239 | alexander707070 | Werewolf (IOI18_werewolf) | C++14 | 4070 ms | 36340 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 200007
using namespace std;
const int bucket_sz=400;
int n,m,a,b,bucket[MAXN],q,l,r;
struct event{
int id;
int val;
int tim;
};
struct qr{
int s,e;
int l,r;
int id;
inline friend bool operator < (qr fr,qr sc){
if(bucket[fr.l]!=bucket[sc.l])return bucket[fr.l]<bucket[sc.l];
else return fr.r<sc.r;
}
};
vector<int> v[MAXN];
stack<event> sl,sr;
qr qs[MAXN];
int ldsu[MAXN],rdsu[MAXN],lsz[MAXN],rsz[MAXN];
int timl,timr;
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... |