# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
372845 | Ozy | Stations (IOI20_stations) | C++17 | 1055 ms | 1408 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 "stations.h"
#include <bits/stdc++.h>
using namespace std;
#define rep(i,a,b) for (int i = (a); i <= (b); i++)
#define repa(i,a,b) for (int i = (a); i >= (b); i--)
#define lli int
#define debug(a) cout << #a << ' ' << a << endl
lli cont,tam;
vector<lli> hijos[1002],res;
void llena(lli pos, lli padre, lli pp) {
if (pp == 1) res[pos] = cont++;
for (auto h : hijos[pos]) {
if (h == padre) continue;
if (pp == 1) llena(h,pos,0);
else llena(h,pos,1);
}
if (pp == 0) res[pos] = cont++;
}
std::vector<int> label(int n, int k, std::vector<int> u, std::vector<int> v) {
res.clear();
res.resize(n);
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |