# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
374730 | YJU | One-Way Streets (CEOI17_oneway) | C++14 | 324 ms | 38508 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>
#pragma GCC optimize("unroll-loops,no-stack-protector")
using namespace std;
typedef long long ll;
typedef pair<ll,ll> pll;
const ll N=1e5+5;
const ll MOD=1e9+7;
#define REP(i,n) for(int i=0;i<n;++i)
#define REP1(i,n) for(int i=1;i<=n;i++)
#define pb push_back
#define mp make_pair
#define X first
#define Y second
ll n,m,q,x,y;
vector<ll> v[N];
pll ed[N];
ll ans[N];
ll depth[N],low[N],vis[N],color[N],is_bridge[N];
void DFS(ll nd,ll par,ll par_edge){
vis[nd]=1;
low[nd]=depth[nd]=depth[par]+1;
for(auto i:v[nd]){
if(i==par_edge)continue;
ll to=ed[i].X+ed[i].Y-nd;
if(vis[to]){
low[nd]=min(low[nd],depth[to]);
}else{
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |