Problem E
Magic Car
Input: standard input
Output: standard output
Time Limit: 5 seconds
ACM ( Association of Car Modernization) has recently developed a new car, "MAGIC CAR". It uses solar energy. The car has some interesting characteristics :
-
It uses up constant amount of energy at the start for any initial speed.
-
It also uses up constant energy when stops.
-
If it changes speed to a value which is less than already achieved least sp