Avito Code Challenge 2018 D. Bookshelves(贪心+bfs)

NoSuchKey