Download solution
time
,
distance
=
$<
.
readlines
map
{
_1
scan
(
/
\d
+
)
join
to_i
}
puts
0
..
find
-
*
>
then
2
1