summaryrefslogtreecommitdiff
path: root/progs/a581.py
blob: e6a33598ca63f27d439f91e764b4274eff746137 (plain)
1
2
3
4
5
6
import math   
def min_Operations(A,B):  
    if (A > B): 
        swap(A,B)  
    B = B // math.gcd(A,B);  
    return B - 1