# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
986289 | vjudge1 | Pastiri (COI20_pastiri) | C++17 | 1059 ms | 65824 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>
#define all(x) (x).begin(),(x).end()
using namespace std;
using ll = long long;
using ld = long double;
//#define int ll
#define sz(x) ((int)(x).size())
using pii = pair<int,int>;
using tii = tuple<int,int,int>;
const int nmax = 5e5 + 5;
vector<int> g[nmax];
int dist[nmax];
int taken[nmax];
vector<int> rez;
namespace Tree {
int p[nmax], jump[nmax], d[nmax];
namespace DS {
void fill(int node, int f, int D) {
//if(taken[node]) return;
taken[node] = 1;
if(D == 0) return;
for(auto x : g[node]) if(x != f) fill(x, node, D - 1);
# | 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... |