Re: 12110 - Gargoyle
Posted: Mon Dec 15, 2014 1:54 pm
brianfry713 can you provide any idea about this problem? How the result of the sample input is 60.0?
Thanks. I missed the "identical" partbrianfry713 wrote:0 -> 4, speed = 9, cost = 9 * 5
4 -> 1, speed = 3, cost = 3 * 2
4 -> 2, speed = 3, cost = 3 * 1
4 -> 3, speed = 3, cost = 3 * 2
Total cost = 60