10pts 求调

P1477 [NOI2008] 假面舞会

破案了, ```cpp for (rint i = h[x]; i; i = ne[i]) { int y = e[i]; dfs(y, x + w[i]); } ``` 应该是 `dfs(y,d[x]+w[i])` 没有环的时候`cout << 3 << " " << res << endl;` 应该是`cout << res << " " << 3 << endl;`
by PassName @ 2022-09-18 12:54:48


|