10671 - Grid Speed
Posted: Thu Jun 17, 2004 6:03 am
I have some difficulty with the second sample test case. My program reports it is possible to travel, and I have to agree!
My diagram looks like this
Going along the route indicted above at maximum speed takes
My diagram looks like this
Code: Select all
8) 20 /--<--S
7) 10 |
6) 20 |
5) 10 |
4) 30 T--<--/
3) 20
2) 20
1) 10
10 20 20 30 10 20 10 10
1) 2) 3) 4) 5) 6) 7) 8)
- time
= 2 / 30 * 60 * 6 + 2 / 20 * 60 * 2
= 24 + 12
= 36,
10 <= time <= 39.