# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
737041 | onlk97 | Duathlon (APIO18_duathlon) | C++14 | 170 ms | 32984 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>
using namespace std;
long long n,m;
vector <int> g[100010],bc[200010];
bool visited[200010];
long long dfn[100010],lo[100010],w[200020],sz[200020],occ[200020];
stack <int> st;
int tme,curid;
void dfs(int cur){
tme++;
dfn[cur]=lo[cur]=tme;
visited[cur]=1;
st.push(cur);
for (int i:g[cur]){
if (!visited[i]){
dfs(i);
lo[cur]=min(lo[cur],lo[i]);
if (lo[i]==dfn[cur]){
curid++;
bool ok=1;
while (ok){
bc[st.top()].push_back(curid);
bc[curid].push_back(st.top());
w[curid]++;
if (st.top()==i) ok=0;
st.pop();
}
bc[cur].push_back(curid);
bc[curid].push_back(cur);
w[curid]++;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |