problem link CodeChef: Practical coding for everyone
i assume in this problem we were basically given a tree and we had to move up the tree refilling fuel and summing up total cost.
i am confused is that supposed to be max out of individual costs because movements are so strict.?
i should have read properly indeed it was. but it still yeild WA.
Ok, I thought you were closer. You are reading M costs while there are N of them, you assign them 0-indexed but then you number the cities from 1. Soā¦thereās serveral lines to modify.