Codechef December Cookoff CHEFNUMK

Revision en1, by ganeshk2, 2016-12-18 21:48:28

I recently attempted this problem
using MO's algorithm (offline sqrt decomp) but got TLE. Almost everyone used the same method to reach AC. Changing values of blocks affects the complexity is known, and i tried a few values. Comparing the following code
with my code
doesn't show much difference, help ?

Tags cook77, mo algorithm


  Rev. Lang. By When Δ Comment
en1 English ganeshk2 2016-12-18 21:48:28 497 Initial revision (published)