# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
114659 | zubec | Type Printer (IOI08_printer) | C++14 | 205 ms | 58716 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;
typedef long long ll;
typedef long double ld;
int n;
struct trie{
int term;
int nxt[26];
};
trie t[500100];
int tin[500100], tout[500100], pr[500100], tim, mxdeep[500100];
int kol = 0;
void dfs(int v, int deep){
tin[v] = ++tim;
mxdeep[v] = deep;
for (int i = 0; i < 26; i++){
if (t[v].nxt[i] != 0){
pr[t[v].nxt[i]] = v;
dfs(t[v].nxt[i], deep+1);
mxdeep[v] = max(mxdeep[v], mxdeep[t[v].nxt[i]]);
}
}
tout[v] = tim;
Compilation message (stderr)
# | 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... |
# | 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... |