# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
769932 | rainboy | Flights (JOI22_flights) | C++17 | 6 ms | 624 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 <string>
#include <vector>
typedef std::vector<int> vi;
typedef std::string str;
namespace {
const int N = 20000;
int ej[N][3], eo[N];
void append(int i, int j) {
ej[i][eo[i]++] = j;
}
str aa; int k, l;
void dfs(int p, int i) {
SetID(i, k++);
if (p != -1)
aa[l++] = '0';
for (int o = eo[i]; o--; ) {
int j = ej[i][o];
if (j != p)
dfs(i, j);
}
if (p != -1)
aa[l++] = '1';
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |