# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
201043 | gs14004 | Putovanje (COCI20_putovanje) | C++17 | 209 ms | 20264 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define sz(v) ((int)(v).size())
#define all(v) (v).begin(), (v).end()
using namespace std;
using pi = pair<int, int>;
using lint = long long;
const int mod = 1e9 + 7;
const int MAXN = 200005;
struct edg{
int pos, c[2];
};
int n;
vector<edg> gph[MAXN];
int par[18][MAXN], pae[MAXN][2], dep[MAXN], dx[MAXN];
void dfs2(int x, int p){
for(auto &i : gph[x]){
if(i.pos != p){
dfs2(i.pos, x);
dx[x] += dx[i.pos];
}
}
}
void dfs(int x, int p){
for(auto &i : gph[x]){
if(i.pos != p){
컴파일 시 표준 에러 (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... |