Problem Name: Maximum number, GCD condition (ANUGCD)
Problem Link: https://www.codechef.com/MARCH14/problems/ANUGCD
My implementation: http://ideone.com/TXHpuW
Verdict: Wrong Answer
Anyone please help me out to find why did I get a WA. Thanks in advance.