Codeforces Round #596 (Div. 2, based on Technocup 2020 Elimination Round 2)D - Power Products

NoSuchKey