Create ride.cpp

To solve a SIMPLE ACM PROB