# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1115128 | thelegendary08 | Flights (JOI22_flights) | C++17 | 1 ms | 332 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 "Ali.h"
#include<bits/stdc++.h>
#define f0r(i,n) for(int i = 0; i<n; i++)
#define pb push_back
#define vi vector<int>
#define FOR(i, k, n) for(int i = k; i< n; i++)
using namespace std;
namespace {
int n;
vector<vi>adj;
vi par;
void dfs(int x, int from){
for(auto u : adj[x]){
if(u != from){
par[u] = x;
dfs(u,x);
}
}
}
}
void Init(int N, std::vector<int> U, std::vector<int> V) {
n = N;
f0r(i,N){
SetID(i,i);
}
adj.resize(N);
par.resize(N);
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |