# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
221463 | patrikpavic2 | Stray Cat (JOI20_stray) | C++17 | 104 ms | 17672 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 "Anthony.h"
#include <vector>
#include <cstdio>
#include <queue>
#include <algorithm>
#define PB push_back
#define X first
#define Y second
using namespace std;
namespace {
const int N = 2e4 + 500;
int kljuc[6] = {1, 1, 0, 0, 1, 0};
int tko[N], dep[N], col[N], par[N], dis[N];
vector < int > v2[N];
vector < int > v[N];
void dfs_glup(int x, int lst){
dep[x] = dep[lst] + 1;
par[x] = lst;
if(lst != x)
v[lst].PB(x);
for(int y : v2[x])
if(y != lst)
dfs_glup(y, x);
}
void dfs_pametan(int x){
if(v[par[x]].size() > 1 || !par[x]){
# | 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... |