you give floatingpoint number hour represent time reach office to commute office n train sequential order you give integer array dist length n disti describe distance kilometer ith train rideeach train depart integer hour need wait train ridefor example 1st train ride take 15 hour wait additional 05 hour depart 2nd train ride 2 hour markreturn minimum positive integer speed kilometer hour train travel reach office time 1 impossible timetest generate answer exceed 107 hour digit decimal point Example 1input dist 132 hour 6output 1explanation at speed 1 the train ride take 11 1 hour since integer hour depart immediately 1 hour mark the second train take 31 3 hour since integer hour depart immediately 4 hour mark the train take 21 2 hour you arrive exactly 6 hour markExample 2input dist 132 hour 27output 3explanation at speed 3 the train ride take 13 033333 hour since integer hour wait 1 hour mark depart the second train ride take 33 1 hour since integer hour depart immediately 2 hour mark the train take 23 066667 hour you arrive 266667 hour markExample 3input dist 132 hour 19output 1explanation it impossible early train depart 2 hour mark Constraintsn distlength1 n 1051 disti 1051 hour 109There digit decimal point hour