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

Above is the problem code

Here we need to find the minimum number of squares for an area of a rectangle and i have done like taking the minimum of length or breadth which is divisible and then printing it.

But no getting the correct answer.

there are solutions related to gcd please don’t suggest that.