# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
155191 | rama_pang | Werewolf (IOI18_werewolf) | C++14 | 1331 ms | 132460 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>
using namespace std;
struct disj {
vector<int> p;
disj(int n) {
p.resize(n);
iota(p.begin(), p.end(), 0);
}
int par(int n) {
return (p[n] == n)? n : p[n] = par(p[n]);
}
};
struct graph {
vector<vector<int>> G;
graph(int n) {
G.resize(n);
}
inline void add_edge(int a, int b) {
G[a].emplace_back(b);
}
void dfs(int n, vector<pair<int, int>> &euler_tour, vector<int> &euler) {
euler_tour[n].first = euler.size();
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... |