Link to question : https://www.codechef.com/JULY17/problems/IPCTRAIN/
Link to solution : https://www.codechef.com/viewsolution/14508935
I have already solved this problem ,Just wanted to know testcase at which my code fails .
Link to question : https://www.codechef.com/JULY17/problems/IPCTRAIN/
Link to solution : https://www.codechef.com/viewsolution/14508935
I have already solved this problem ,Just wanted to know testcase at which my code fails .
your code fails for this testcase
1
6 6
1 3 50
2 2 10
3 3 400
4 2 200
5 3 300
6 4 100
Expected output:1470
Your Output:1420