Rosetta Problems
← atcoder に戻る
K-th K
https://atcoder.jp/contests/agc008/tasks/agc008_d