# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1172942 | escobrand | One-Way Streets (CEOI17_oneway) | C++20 | 5 ms | 12096 KiB |
#include <bits/stdc++.h>
using namespace std;
#define all(v) v.begin(),v.end()
#define eb push_back
#define ll long long
#define fi first
#define se second
int t,n,i,m,j,u,v,q;
const int maxn = 1e5 + 10,maxv = 20;
struct bruh
{
int XX,XXX,XXXX;
};
vector<bruh> a[maxn];
bool c[maxn],e[maxn],need[maxn];
int low[maxn],de[maxn],tim[maxn],ans[maxn],p[maxn][maxv];
set<int> from[maxn],to[maxn];
void dfs(int i,int pa)
{
low[i] = tim[i] = ++t;
c[i] = 1;
de[i] = de[pa]+1;
for(auto [k,id,ch] : a[i])
{
if(k == pa)continue;
if(c[k])low[i] = min(low[i],tim[k]);
else
{
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |