WA In IPCTRAIN JULY LONG

Link to question : CodeChef: Practical coding for everyone

Link to solution : CodeChef: Practical coding for everyone

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

1 Like