Rosetta Problems

LRU Puzzle

https://atcoder.jp/contests/code-festival-2016-quala/tasks/codefestival_2016_qualA_e