我不能使用一个now[]数组进行优化,是因为这题数据有重边吗?
如此优化(在这题中是错的): for(int i=now[u];i<=n;i=now[u]){ now[u]=i+1; if(g[u][i]>0){ g[u][i]--;g[i][u]--; dfs(i); } }