# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
96094 | bogdan10bos | Werewolf (IOI18_werewolf) | C++14 | 1134 ms | 104188 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"
using namespace std;
typedef pair<int, int> pii;
const int NMAX = 2e5;
int N;
vector< vector<int> > edg;
class Tree
{
public:
int N, I;
vector<int> f, fth[20];
vector<int> lft, rgt, ord;
vector< vector<int> > edg;
int F(int x)
{
if(f[x] == x) return x;
return f[x] = F(f[x]);
}
void init(int _N)
{
N = _N;
f.resize(N + 2);
edg.resize(N + 2);
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... |