there are many submission with different output has been accepted may be due to weak test case this is my solution https://www.codechef.com/viewsolution/8814397
and this is others solution- https://www.codechef.com/viewsolution/8815530 both solution gives different output at
1
4
12 26 34 76
according to my approach gcd is 2 and acco. to this one gcd is 4 for (12 (min),76 (max))
there are so many solution with different output this was one of them i dont know my method is correct or not if i am wrong them please tell me
i hope my solution and approach is correct. i found weak test cases many times and suggested to contest admin may be this time also