Unverified Commit ffd45b95 authored by Angel_Kitty's avatar Angel_Kitty Committed by GitHub
Browse files

Merge pull request #1876 from OI-wiki/2997ms-patch-1

Fix code bug in HLD
parents 39eed989 c59ccbb3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -379,7 +379,7 @@ int querymax(int x, int y) {
        scanf("%d%d", &a, &b), add_edge(a, b), add_edge(b, a);
      for (int i = 1; i <= n; i++) scanf("%d", w + i);
      dep[1] = 1;
      dfs1(1, -1);
      dfs1(1);
      dfs2(1, 1);
      st.build(1, 1, n);
      scanf("%d", &q);