Chocolates

2

7 votes
Arrays, Linear Algebra, Implementation, Fast Fourier transform, Combinatorics, Fourier Transformations, Modular exponentiation, Mathematics, Modulo arithmetic, Math
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

?