Classic task
Practice
4.8 (12 votes)
Ad Hoc
Dsu
Data structures
Disjoint data structures
Disjoint set
Hard
難しい
Code Editor

Please login to use the editor

You need to be logged in to access the code editor

Loading...

Please wait while we load the editor

Loading...
Results
Custom Input
Run your code to see the output
Submissions
Please login to view your submissions
Similar Problems
Points:50
6 votes
Tags:
Data StructuresDisjoint Data StructuresDisjoint SetDisjoint setHard
Points:50
41 votes
Tags:
ApprovedData StructuresDisjoint setHardImplementationOpen
Points:50
5 votes
Tags:
AlgorithmsApprovedData StructuresDisjoint setHardOpen
Editorial

Login to unlock the editorial