# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
237403 | keta_tsimakuridze | One-Way Streets (CEOI17_oneway) | C++14 | 401 ms | 36856 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
using namespace std;
int n,m,k,u,v,mn[100005],ind[100005],fix[100005],bridge[100005],F[100005],sum[100005],timer,tmin[100005],q;
char ans[100005];
vector<pair<int,pair<int,int> > >V[100005],B[100005];
map<int,int>FX[100005];
void dfs(int u,int p) {
fix[u]=1;
timer++;
tmin[u]=mn[u]=timer;
for(int i=0; i<V[u].size(); i++) {
int v=V[u][i].first;
if(v==p) continue;
if(fix[v]==0) {
dfs(v,u);
mn[u]=min(mn[u],mn[v]);
if(mn[v]>tmin[u] && FX[v][u]==1) {
bridge[V[u][i].second.first]=1;
F[v]=1;
F[u]=1;
}
} else mn[u]=min(mn[u],tmin[v]);
}
// cout<<u<<"++"<<mn[u]<<endl;
}
void dfs1(int u,int p,int nm) {
if(nm==1)fix[u]=2;
컴파일 시 표준 에러 (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... |