LOC July 2018

Can anyone tell me the algorithm for LOC July (Chef and College) question? Please!

PLease wait till today midnight. The contest will end soon.

Ask once more then you can thank me for asking @admin to suspend your account.

Its strictly against codechef rules to ask for help/soln or helping in ongoing contest on any platform.

Last Warning.

No excuses will be entertained further in this regard.

Soln https://www.codechef.com/viewsolution/19357712 .

You should be thankful to me now. xD