Codeforces Round #630 (Div. 2) E. Height All the Same (快速幂&思维)

NoSuchKey