Need Help me with sqrt-decomposition technique
Difference between en1 and en2, changed 8 character(s)
I have tried solving this http://www.codechef.com/problems/CHEFD/ problem using sqrt decomposition technique,but im getting AC for some cases and wrong answer for some cases......Can anyone share me your idea using sqrt decomposition method for this problem,thanks......

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English rahulnagurtha 2015-10-25 19:00:17 13 Tiny change: 'an anyone share me your idea' -> 'an anyone discuss your idea'
en2 English rahulnagurtha 2015-07-16 06:26:01 8
en1 English rahulnagurtha 2015-07-16 05:45:11 311 Initial revision (published)