直接dfs加上子树大小不等的判断
复杂度的确是O(nlogn)
by hehezhou @ 2019-08-08 08:07:28
@[wemspzc](/space/show?uid=60075) %%%
by abs001 @ 2019-08-08 08:07:33
@[chenyewei_1234](/space/show?uid=43697) %%%
by abs001 @ 2019-08-08 08:07:53
@[chenyewei_1234](/space/show?uid=43697) %一下
by pzc2004 @ 2019-08-08 08:08:06
@[ArchaeologistVG](/space/show?uid=151641) 对啊想当年我切了T1T2T4就没切下T3(但是T3偷了几分Umm)
by Cubeneo @ 2019-08-08 09:15:26
@[Cubeneo](/space/show?uid=82358) 到现在T3碰都不敢碰(专心做其他题去了,T3已经心理阴影了
by 73EL @ 2019-08-08 09:20:05