nekomata_saren@tg says to YSITD
這很O(n log n)