# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
62638 | SpaimaCarpatilor | Simurgh (IOI17_simurgh) | C++17 | 614 ms | 9136 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 "simurgh.h"
#include<bits/stdc++.h>
using namespace std;
int N, M, id[509][509], x[130009], y[130009], ans[130009], q[130009];
bool traversed[130009];
bool anyEdge[509][509];
vector < int > v[509], h[509];
namespace fixedSTfinder
{
int ap[509], t[509], low[509], lev[509];
bool ap2[509];
void dfs (int nod)
{
ap[nod] = 2, low[nod] = nod;
for (auto it : v[nod])
if (ap[it] == 0)
t[it] = nod, lev[it] = lev[nod] + 1,
h[it].push_back (nod),
h[nod].push_back (it),
dfs (it);
else
if (ap[it] == 2 && t[nod] != it)
{
if (lev[it] < lev[low[nod]])
low[nod] = it;
}
ap[nod] = 1;
}
Compilation message (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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |