版本比较
P4183 [USACO18JAN] Cow at Large P 题解
正文
增加 1 行删除 1 行
37 行未改动38394041424243444546151 行未改动全部展开37 行未改动 if(siz[x]>2){ if(nu<mi[x]&&nu!=0) ans+=siz[x]-2; tot++; } if(tot>=num) return ; if(tot>=num) return ; for(int i=hea[x];i;i=nex[i]){ int t=to[i]; if(t!=fa){ dfs(t,nu+1,x);151 行未改动全部展开