def fd(n): x,y,count1,count2 = n,1,0,0 while (x > 1): (x,count1) = (x/5,1+count1) while (y < n): (y,count2) = (count1+y,1+count2) return count2
python big-o
big-o ×1
python ×1