Codeforces Round #482 (Div. 2) D. Kuro and GCD and XOR and SUM(字典树)

NoSuchKey