TechFest 2015 Screening Round, LIZARDS

Why the Accepted Solutions of all the users are Hidden ???

question link -> http://www.codechef.com/TCFS15S/problems/LIZARDS

I think pre-Requisite for this Question is Binary Indexed tree.

Can someone provide an editorial or few hints for solving this question ?

2 Likes