codeforces div2 1288D Minimax Problem

NoSuchKey