Codeforces Round #596 Div. 2 D. Power Products 唯一分解+哈希

NoSuchKey