what is the problem in the program?

https://www.codechef.com/viewsolution/20458354

u should divide with the greatest common divisor not with the smallest element.

So first find the gcd of all the numbers in the array and then divide each element in the array with this gcd

thanks… u got it right!

//