222.Budget Travel(UVA)
hi!! i am trying to solve this problem on uva o9 judge,but i am getting WA on test cases.here's my code...can someone please explain why??