Rosetta Problems

K 远点对

https://www.acwing.com/problem/content/2841