# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
118520 | zubec | One-Way Streets (CEOI17_oneway) | C++14 | 572 ms | 25424 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
const int N = 100100;
vector <pair<int, int > > g[N];
int tin[N], fup[N], tim, tout[N], n, m;
int up[20][N];
bool used[N], isBridge[N];
void dfs(int v, int p){
used[v] = 1;
tin[v] = fup[v] = ++tim;
for (int i = 0; i < g[v].size(); i++){
int to = g[v][i].first, id = g[v][i].second;
if (id == p)
continue;
if (!used[to]){
dfs(to, id);
fup[v] = min(fup[v], fup[to]);
if (tin[v] < fup[to]){
isBridge[id] = 1;
}
} else {
fup[v] = min(fup[v], tin[to]);
컴파일 시 표준 에러 (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... |