From 48f40cd2f8d28bb7340ee91ccfef7389912bd6fb Mon Sep 17 00:00:00 2001 From: Kirito <1362050620@qq.com> Date: Mon, 19 Sep 2016 11:35:31 +0800 Subject: [PATCH] Update 5723.cpp This time AC. --- HDOJ/5723.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/HDOJ/5723.cpp b/HDOJ/5723.cpp index 54322ed..339381f 100644 --- a/HDOJ/5723.cpp +++ b/HDOJ/5723.cpp @@ -30,6 +30,7 @@ int findfather(int x) return father[x]==x?x:father[x]=findfather(father[x]); } +/// Global For DFS LL totalans; LL dfs(int index) @@ -40,9 +41,10 @@ LL dfs(int index) LL nextans=0; for(int i=0;i