nekomata_saren@tg says to YSITD
我覺得應該沒有O(1)算法