Can anyone tell me how to approach this problem?
Every successful submissions have used a similar approach and I am unable to understand it.
Can anyone tell me how to approach this problem?
Every successful submissions have used a similar approach and I am unable to understand it.
http://www.codechef.com/LTIME13/problems/COPRIME3 refer this problem from one the previous lunch time.