# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
161692 | Minnakhmetov | One-Way Streets (CEOI17_oneway) | C++14 | 239 ms | 34552 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>
#define ll long long
#define all(aaa) aaa.begin(), aaa.end()
using namespace std;
struct E {
int to, i;
bool straight;
};
const int N = 1e5 + 5, L = 19;
vector<E> g[N], g2[N], t[N];
int tin[N], mnt[N], tint[N], toutt[N], w[N][2], par[N][L],
col[N];
int timer = 1;
string ans;
bool used[N];
void dfs(int node, int anc) {
mnt[node] = tin[node] = timer++;
for (E e : g[node]) {
if (e.i != anc) {
if (!tin[e.to]) {
dfs(e.to, e.i);
mnt[node] = min(mnt[node], mnt[e.to]);
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |