春招模拟赛|2022年9月21日华子秋招机试三道题
- Status
- Done
- Rule
- IOI
- Problem
- 3
- Start at
- 2023-4-10 19:00
- End at
- 2023-4-10 21:00
- Duration
- 2 hour(s)
- Host
- Partic.
- 186
No testdata at current.
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
1.子树结点越多,结点影响越大。
2.影响相同的情况下,编号小的排前面
知道这两点了以后,就直接dfs一下求每个点的子树个数。然后对结点按子树个数降序排序。相同按编号升序排
本题属于以下题库,请选择所需题库进行购买