Codeforces B. Captain Flint and a Long Voyage (思维 / 二进制) (Round #660 Div.2)

NoSuchKey