# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1176332 | _wesstiov_ | Putovanje (COCI20_putovanje) | C++20 | 148 ms | 64760 KiB |
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define fi first
#define sc second
#define fast cin.tie(0)->ios_base::sync_with_stdio(0)
#define ll long long
#define ii pair<ll,ll>
//#define int long long
const ll INF = (int)1e15;
const int max_n = (int)2e5;
const int MOD = (int)1e9 + 7;
const int LG = 17;
struct datas{
int pos ;
ll sum;
int cost , cnt;
} par[max_n + 5][LG + 5];
int n;
int hig[max_n + 5];
struct node{
int v , cost1 , cost2;
};
vector<node> adj[max_n + 5];
void dfs(int u,int p){
for (auto v : adj[u]){
if (v.v == p) continue;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |