# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1172970 | escobrand | One-Way Streets (CEOI17_oneway) | C++20 | 103 ms | 39816 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,co,qr;
const int maxn = 3e5 + 10,maxv = 20;
int tim[maxn],low[maxn],id[maxn],p[maxn][maxv],de[maxn],ans[maxn],suma[maxn],sumb[maxn];
struct bruh
{
int o,oo,ooo;
};
vector<bruh> a[maxn],tree[maxn];
stack<int> st;
bool e[maxn],f[maxn],g[maxn];
void dfs(int i,int p)
{
tim[i] = low[i] = ++t;
bool through = 0;
st.push(i);
for(auto [k,idx,ch] : a[i])
{
if(k == p && !through)
{
through = 1;
continue;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |