CF 2188D - Shortest Statement Ever

Rating: 1800
Tags: bitmasks, constructive algorithms, dp, greedy, math
Solve time: 44s
Verified: no

Solution

Working