Maximum Spanning Tree Weight
Medium
Minimum Spanning Tree
For the same input format, print the weight of the maximum spanning tree.
Constraints
1 <= n <= 10^5 n-1 <= m <= 2*10^5
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.