Help me in solving MINPIZZAS problem

My issue

What is the difference between the output of the code
print(int(int(n) / gcd(int(n), int(k)) * int(k) / int(k)))
versus the output of the code
print(int(n) // gcd(int(n), int(k)) * int(k) / int(k))
as codechef marks the former as incorrect and the latter as correct. Also, if I were to remove the part of the equation so that it looks like
print(int(n) / gcd(int(n), int(k)))
codechef marks it as correct.

My code

# cook your dish here
from math import *
t= int(input(""))
for i in range(t):
    n, k = input("").split()
    print(floor(int(n) // gcd(int(n), int(k)) * int(k) / int(k)))
    

Problem Link: CodeChef: Practical coding for everyone

@meyou
The logic is find the lcm of n and k and then divide the lcm by k .