text: class Ride:
      def __init__(self, startX=0, startY=0, endX=0, endY=0, startT=0, endT=0):
          self.startX=startX
          self.startY=startY
          self.endX=endX
          self.endY=endY
          self.startT=startT
          self.endT=endT
  
      def length(self):
          return abs(self.startX - endX) + abs(self.startY - endY)
  
      def minRideTime(self):
          return (endT - startT)
  
  def distReachNextRide(RideA, RideB):
      return abs(RideA.startX - RideB.startY) + abs(RideA.endX - RideB.endY)
  
  def timeBetweenRides(RideA, RideB):
      return RideB.startT - RideA.endT
  