IPCTRAIN- Need help.

I am getting a WA for all but one testcase. Need help figuring it out.

https://www.codechef.com/viewsolution/14642446

1 Like

Check your code for thsi test case-

Input
1
4 5
1 3 100
1 3 150
5 1 1000
5 1 2000
Your Output
300
Expected Output
1200

Your algorithm is allowing a instructor at day 5 take lecture before his arrival.

You should not use “award point” feature to give points dear. Accepting answer is more than enough. Award point takes away YOUR karma, and you need 20+ karma to ask Q without time restriction.

1 Like