Rosetta Problems

KthLIS

https://atcoder.jp/contests/yahoo-procon2017-final/tasks/yahoo_procon2017_final_d