O(n2)O(n^2)O(n2) 被卡常了,以下是两份同样代码的提交记录。
https://www.luogu.com.cn/record/191284680
https://www.luogu.com.cn/record/191284732