The problem tag might not be correct. Please feel free to leave a comment or use the report button at the top right of the navigation bar.
Tag Assigner
Centroid darkkcyan
Disjoint set (DSU) darkkcyan
Binary Lifting darkkcyan

Comments

Please read the guidelines before commenting.



  • 3
    darkkcyan  commented on Oct. 20, 2021, 9:02 p.m.

    Bài này solution chuẩn của họ sử dụng DSU với Binary lifting, tuy nhiên cách của mình giải bằng Centroid decomposition mà không cần 2 thuật kia :3