CHANDF, Did StressTesting with BruteForce still WA for 40

I am restless since 3 days because I did enough stress testing of my solution against brute force but still couldn’t get 40 points. Can anyone please help in this regard? What mistake am I doing? I will be more sleepless now knowing the fact that stress testing with AC solution also didn’t gave me any conflicting test cases(and even one AC solution was giving wrong answers still AC!!!)

This is my code link https://onlinegdb.com/rJ1h36IcI. Please help me out if you can. Thanks

2 Likes

Most probably an overflow error because i see a lots of int in implementation.

1 Like

Thank you Pulkit @pulkit_mittal . I am just ashamed that I could’t see those two int variables!!
But yeah it’s much peace now. I got my 40 AC:)