# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
138657 | ckodser | Werewolf (IOI18_werewolf) | C++14 | 4045 ms | 108980 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 "werewolf.h"
#include<bits/stdc++.h>
#define ll int
#define pb push_back
#define ld long double
#define F first
#define S second
#define mp make_pair
#define pii pair<ll,ll>
using namespace :: std;
const ll maxn=5e5+500;
const ll inf=1e9+900;
vector<ll> c[2];
bool is_barkh(ll l,ll r,ll L,ll R){
set<ll> st;
for(ll i=l;i<r;i++){
st.insert(c[0][i]);
}
for(ll i=L;i<R;i++){
ll v=c[1][i];
if(st.find(v)!=st.end())return 1;
}
return 0;
}
ll n,m,q;
# | 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... |