cf 505d Mr. Kitayuta's Technology


#include 
#include 
#include 
using namespace std;
#define maxn 200005
vector  G[maxn],g[maxn],st;
int vis[maxn];
int mk[maxn];
int flag;
void dfs(int v)
{
    st.push_back(v);
    vis[v]=1;
    for(int i=0;i


你可能感兴趣的:(codeforces)