# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1146210 | rado15 | Easter Eggs (info1cup17_eastereggs) | C++20 | 0 ms | 0 KiB |
#include <bits/stdc++.h>
#include "grader.h"
#define endl '\n'
#define int long long int
using namespace std;
const int maxn = 600;
void speed()
{
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
}
vector<int> v[maxn];
bool used[maxn];
vector<int> topo;
void DFS(int beg)
{
used[beg] = true;
topo.push_back(beg);
for(auto &nb: v[beg])
{
if(!used[nb])
{
DFS(nb);
}
}
}