Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
fei0319 committed Feb 25, 2024
2 parents 71a2ec2 + 8cbdde7 commit 0365ad0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contest/cf1725/J.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void dfs2(int node, int fa) {
s.insert(0LL);
s.insert(len_g[node]);
mf.insert(g[node]);

auto it = s.end();
ans = std::max(ans, *--it + *--it + *--it + *--it);

Expand Down

0 comments on commit 0365ad0

Please sign in to comment.