OSDN Git Service

Update tree-divide.md
author雷蒻 <34390285+hsfzLZH1@users.noreply.github.com>
Wed, 6 Mar 2019 07:58:20 +0000 (15:58 +0800)
committerGitHub <noreply@github.com>
Wed, 6 Mar 2019 07:58:20 +0000 (15:58 +0800)
docs/graph/tree-divide.md

index bd96b6b..dcc94fe 100644 (file)
@@ -196,7 +196,7 @@ void dfz(int x,int fa)
     {
         sum=siz[p[j]];
         rt=0;maxx[rt]=inf;calcsiz(p[j],x);calcsiz(rt,-1);
-        dfz(p[j],x);
+        dfz(rt,x);
     }
 }
 int main()