版本比较
CF1583E 题解
正文
增加 3 行删除 3 行
42 行未改动4344454647474849495051525329 行未改动83848586878788899042 行未改动 }}dsu;void dfs(int x,int fa,int to){ for(int i=0;i<a[x].size();i++){ int tmp=a[x][i]; int tmp=a[x][i]; if(tmp==fa) continue; b.push_back(tmp); b.push_back(tmp); if(tmp==to){ //走到了 fl=1; return ; }29 行未改动 for(int j=0;j<b.size();j++) cout<<b[j]<<' '; cout<<endl; } } else cout<<"NO"<<endl<<ans/2<<endl; else cout<<"NO"<<endl<<ans/2<<endl; return 0;}```