# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
992543 | Abito | Paths (RMI21_paths) | C++17 | 601 ms | 852 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>
#define F first
#define S second
#define pb push_back
#define ppb pop_back
#define ep insert
#define endl '\n'
#define elif else if
#define pow pwr
#define sqrt sqrtt
#define int long long
#define y1 YONE
typedef unsigned long long ull;
using namespace std;
const int N=2005;
int n,k,dis[N],tin[N],sz[N],par[N],t,lazy[4*N+5],v[N],tree[N];
vector<pair<int,int>> adj[N];
pair<int,int> seg[4*N+5];
bool vis[N];
void dfs(int x,int p){
par[x]=p;
sz[x]=1;
t++;
tin[x]=t;
tree[t]=x;
for (auto u:adj[x]){
if (p==u.F) continue;
v[u.F]=u.S;
dis[u.F]=dis[x]+u.S;
dfs(u.F,x);
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |