DigIT

3.8

60 votes
Dynamic Programming, Combinatorics, Hard, Number Theory, Brute-force search, Open, Approved
The Editorial is locked. In order to qualify for points, you need to solve the problem without unlocking the editorial.
Are you sure you want to unlock the tab?
Unlock it

?