You are viewing a single comment's thread. Return to all comments →
in python
def getTotalX(a, b): mcm_a = math.lcm(*a) i=1 counter = 0 while i*mcm_a <= min(b): div_b = True for b_ in b: if b_%(i*mcm_a)!=0: div_b = False if div_b == True: counter+=1 i+=1 return counter
Seems like cookies are disabled on this browser, please enable them to open this website
Between Two Sets
You are viewing a single comment's thread. Return to all comments →
in python