Wrong answer in this solution (INGEN03)

Hello guys ,

Today I was solving this problem https://www.codechef.com/CEIN2019/problems/INGEN03 and I am getting wrong answer and even after verifying many times , I am unable to find a fault in my code

My code : https://pastebin.com/mh2KyBwm

Can someone please tell me where I am wrong ??

Thanks a lot !!

1 Like