• + 0 comments

    def movingTiles(l, s1, s2, queries):

    F = [] 
    for i in queries:
    
          Q_slope = math.sqrt(i + i)
          S_Diagonal = math.sqrt(l**2 + l**2)
          F.append((S_Diagonal-Q_slope)/abs(s1-s2))
    return (F)