算了下时间复杂度:
4000×4000×log240004000 \times 4000 \times log_2{4000}4000×4000×log24000 ≈\approx≈ 2.56×108 2.56 \times 10^{8}2.56×108
不应该超时吗?没想到却过了。