# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
939558 | phoenix0423 | One-Way Streets (CEOI17_oneway) | C++17 | 83 ms | 37404 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> pll;
#define fastio ios::sync_with_stdio(false), cin.tie(0)
#define pb push_back
#define eb emplace_back
#define f first
#define s second
#define int long long
const int maxn = 2e5 + 5;
int n, m, q;
vector<pll> adj[maxn];
vector<pll> nadj[maxn];
int scc[maxn], low[maxn], in[maxn], dfn = 0, cnt = 0;
int val[maxn];
pll ori[maxn];
stack<int> st;
void dfs(int pos, int pid){
low[pos] = in[pos] = ++dfn;
st.push(pos);
for(auto [x, id] : adj[pos]){
if(id == pid) continue;
if(in[x]) low[pos] = min(low[pos], in[x]);
else{
dfs(x, id);
low[pos] = min(low[pos], low[x]);
}
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |