Expedition Problem Greedy

Link to the code: https://ide.codingblocks.com/s/391796

this code runs fine on my machine but gives WA on SPOJ, please check and suggest changes

define
int n, D, F, prev = 0;
with every new test case (inside t while loop)

Thank you, it got accepted…

1 Like