# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
938750 | Aiperiii | One-Way Streets (CEOI17_oneway) | C++14 | 2 ms | 10528 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 int long long
#define ff first
#define ss second
#define pb push_back
#define all(x) x.begin(),x.end()
using namespace std;
const int N=1e5+5;
vector <int> g_brg[N];
vector <pair <int,int> > g_gr[N];
int vis_brg[N],low[N],tin[N],gr[N],To[N],from[N],vis_gr[N];
char ans[N];
map <pair <int,int> ,int> brg;
int tt=0,cnt=0;
void dfs_brg(int v,int p){
vis_brg[v]=1;
tt++;
tin[v]=tt;low[v]=tt;
for(auto to : g_brg[v]){
if(to!=p){
if(vis_brg[to])low[v]=min(low[v],tin[to]);
else{
dfs_brg(to,v);
low[v]=min(low[v],low[to]);
if(low[to]>tin[v]){
brg[{v,to}]++;
brg[{to,v}]++;
}
}
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |