# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
385522 | ogibogi2004 | Toll (APIO13_toll) | C++14 | 1 ms | 620 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;
const int INF=1e9;
int n,m,k;
struct edge
{
int u,v,w;
bool operator<(edge const& other)const
{
return w<other.w;
}
};
int ans,sum;
vector<edge>e;
vector<edge>nmst;
vector<edge>mst;
int st[20],en[20];
vector<pair<int,int> >g[1024];
int par[1024],sz[1024];
int dp1[1024][12];
int depth[1024];
int h[1024];
vector<int>spec[1024][12];
int getRoot(int u)
{
if(u==par[u])return u;
return par[u]=getRoot(par[u]);
}
void join(int p,int q)
{
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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |