Codeforces Round 544 (Div. 3) F2. Spanning Tree with One Fixed Degree
- Time : O(vlogv+e)
- Space : O(vlogv+e)
c++
1 |
|