How to solve this Question

Revision en1, by root8950, 2016-03-13 20:08:49

I am unable to find approach to this question. https://www.codechef.com/IOPC2016/problems/IOPC16Q The contest is over and there is no editorial. Anybody having idea how to solve it?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English root8950 2016-03-13 20:08:49 208 Initial revision (published)