Kindly tell which corner case am i missing

problem
https://www.codechef.com/LTIME94C/problems/RACINGEN
code

hello @laksh.rustagi12

use long long and then try.

also video and text editorials are already out so check that as well

i have used long long
#define ll long long

check editorial…

i saw the editorial but my concern is basically the problem in my code.
I had to see the video soln, the editorial itself gave wa

this is all u need to do.

ss

the editorial solution is also working fine link

use long long for energy have, u are using int

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.