#include #include #include using namespace std; const int N=100000; vectorg[N+1]; int n,m,fin; bool st[27]; char s[N+1]; bool vis[N+1]; bool f; int v[N+1]; void dfs(int dad){ vis[dad]=true; st[v[dad]]=!st[v[dad]]; if(dad==fin){ f=true; return; } for(unsigned int i=0;i