# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
234570 | pedy4000 | Izlet (COI19_izlet) | C++14 | 809 ms | 50232 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 <algorithm>
#include <iostream>
#include <cassert>
#include <vector>
using namespace std;
typedef pair <int, int> pii;
const int N = 3e3 + 9;
int n, ind;
vector <pii> ans;
int par[N];
bool del[N];
int col[N];
int dis[N][N];
vector <int> G[N];
int cnt;
int mark[N];
int root (int v) {
return par[v] == v? v: par[v] = root(par[v]);
}
void dfs(int v, int p, int u) {
cnt += !mark[col[v]];
mark[col[v]]++;
if (dis[v][u] < cnt)
assert(false);
if (dis[v][u] > cnt + 1)
assert(false);
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |