# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1020896 | JakobZorz | Werewolf (IOI18_werewolf) | C++17 | 4064 ms | 91392 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<queue>
#include<iostream>
#include<set>
#include<algorithm>
using namespace std;
int n,m,q;
vector<int>nodes[200000];
vector<bool>reachable2(int s,int t){
vector<bool>vis(n);
queue<int>q;
q.push(s);
while(q.size()){
int node=q.front();
q.pop();
if(vis[node]||node<t)
continue;
vis[node]=true;
for(int ne:nodes[node])
q.push(ne);
}
return vis;
}
struct Query{
int S,E,L,R;
int ans;
};
# | 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... |