# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
646150 | Hacv16 | Putovanje (COCI20_putovanje) | C++17 | 161 ms | 55968 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<bits/stdc++.h>
using namespace std;
#define pb push_back
#define sc second
#define fr first
#define all(x) x.begin(), x.end()
#define sz(x) (ll) x.size()
#define dbg(x) cerr << #x << ": [ " << x << " ]\n"
typedef long long ll;
typedef pair<int, int> pii;
const int LOG = 22;
const int MAX = 2e5 + 15;
const int INF = 0x3f3f3f3f;
struct Edge{
ll v, c1, c2;
Edge(ll a = 0, ll b = 0, ll c = 0){
v = a, c1 = b, c2 = c;
}
};
ll n, dp[MAX][LOG], dp2[MAX], d[MAX], t[MAX], w1[MAX], w2[MAX], ans;
vector<Edge> adj[MAX];
void dfs(ll u, ll p){
dp[u][0] = p;
Compilation message (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... |