# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1132426 | DangKhoizzzz | Putovanje (COCI20_putovanje) | C++20 | 128 ms | 34536 KiB |
#include <bits/stdc++.h>
#define int long long
#define fi first
#define se second
#define pii pair <int , int>
#define arr3 array <int , 3>
using namespace std;
const int INF = 1e9 + 7;
const int maxn = 2e5 + 7;
vector <arr3> g[maxn];
int n , cost1[maxn] , cost2[maxn] , jump[maxn][20] , dep[maxn] , cnt[maxn];
void dfs(int u , int p)
{
for(arr3 tmp: g[u])
{
int v = tmp[0];
if(v == p) continue;
dep[v] = dep[u] + 1;
jump[v][0] = u;
cost1[v] = tmp[1];
cost2[v] = tmp[2];
dfs(v , u);
}
}
void build()
{
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |