这是 $O(n^4)$ 复杂度 数据范围中有 $n,m\le 100$ ,所以 $O(n^4)$ 能过很正常 by _mayiwei @ 2023-07-17 16:24:21
@[_mayiwei](/user/943211) ! by yyrwlj @ 2023-10-20 09:15:08