( Problem E ) Pikachu and Champions League
- Time : O(elogv+qlogq∗logv∗logv)
- Space : O(vlogv+v+e)
c++
1 |
|