# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
438622 | huangqr | One-Way Streets (CEOI17_oneway) | C++14 | 131 ms | 16416 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;
typedef int ll;
typedef pair<ll,ll> pl;
const ll lim=1e5+5;
ll n,m,q;
vector<char>ans;
struct UFDS{
ll par[lim];
UFDS(){
for(int i=0;i<lim;i++)par[i]=i;
}
ll findset(ll pos){
if(pos==par[pos])return pos;
else return par[pos]=findset(par[pos]);
}
void mergeset(ll a,ll b){
a = findset(a),b = findset(b);
if(a!=b)par[b]=a;
}
}ufds;
struct Edge{
ll x,a,b,idx;//x is the other guy, a and b are original order of edge
Edge(ll xx,ll aa,ll bb,ll ii){
x=xx,a=aa,b=bb,idx=ii;
}
Edge(){}
};
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |