# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
344937 | limabeans | Putovanje (COCI20_putovanje) | C++17 | 195 ms | 26220 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 <bits/stdc++.h>
using namespace std;
template<typename T>
void out(T x) { cout << x << endl; exit(0); }
#define watch(x) cout << (#x) << " is " << (x) << endl
using ll = long long;
const int maxn = 2e5 + 10;
const int LOG = 18;
int n;
pair<ll,ll> edge[maxn];
vector<pair<int,int>> g[maxn];
int dep[maxn];
int par[LOG+1][maxn];
void dfs(int at, int p) {
for (int i=1; i<LOG; i++) {
par[i][at] = par[i-1][par[i-1][at]];
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |