# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
566217 | shahriarkhan | One-Way Streets (CEOI17_oneway) | C++14 | 192 ms | 27840 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
using namespace std ;
//1 = L
//2 = B
//3 = R
const int MX = 1e5 + 5 , LG = 25 ;
int bridge[MX] , up[MX][LG] , vis[MX] , ans[MX] , low[MX] , tin[MX] , tout[MX] , timer = 0 , sub[MX][2] ;
vector<pair<int,int> > adj[MX] , edges ;
void dfs(int s , int p , int idx_par)
{
if(vis[s]) return ;
up[s][0] = p , vis[s] = 1 , tin[s] = ++timer , low[s] = tin[s] ;
for(int i = 1 ; i < LG ; ++i)
{
up[s][i] = up[up[s][i-1]][i-1] ;
}
for(pair<int,int> t : adj[s])
{
if(t.second==idx_par) continue ;
if(vis[t.first]) low[s] = min(low[s],tin[t.first]) ;
else
{
dfs(t.first,s,t.second) ;
low[s] = min(low[s],low[t.first]) ;
if(low[t.first]>tin[s]) bridge[t.second] = 1 ;
컴파일 시 표준 에러 (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... |