D. XOR-pyramid Codeforces Round #483 (Div. 2) dp

NoSuchKey