# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
158255 | TadijaSebez | Snowy Roads (JOI16_snowy) | C++11 | 27 ms | 2044 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "Anyalib.h"
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
namespace _Anya
{
const int M=505;
vector<pair<int,int>> E[M];
int nod[M],dep[M],n;
int mark[M],csz;
vector<int> marked;
int DFS(int u, int p)
{
int mx=0;
for(auto e:E[u]) if(e.first!=p)
{
nod[e.second]=e.first;
int now=DFS(e.first,u);
mx=max(mx,now);
}
mx++;
if(mx>=11)
{
mx=0;
mark[u]=++csz;
marked.pb(u);
}
return mx;
}
void InitAnya(int N, int A[], int B[])
# | 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... |