Rosetta Problems

K-th Nearest

https://atcoder.jp/contests/abc364/tasks/abc364_d