CEILLAND Problem Solution

Hi, I am unable to understand the solution to the CEILLAND question ( LINK : CodeChef: Practical coding for everyone ) which was a part of the March Cook-off.

Can someone please help me understand the explanation given in the contest editorial ? ( LINK : March 2012 Cook-off Problem Editorials | CodeChef ) Any help would be most appreciated. Thank you :slight_smile:

Hi, where can’t you understand in the editorial? Please tell me.