Page 1 of 1

Re: 12110 - Gargoyle

Posted: Mon Dec 15, 2014 1:54 pm
by rumman
brianfry713 can you provide any idea about this problem? How the result of the sample input is 60.0?

Re: 12110 - Gargoyle

Posted: Tue Dec 16, 2014 1:42 am
by brianfry713
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

Re: 12110 - Gargoyle

Posted: Tue Dec 16, 2014 5:23 am
by rumman
brianfry713 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
Thanks. I missed the "identical" part :)