Https://www.codechef.com/viewsolution/26061437

I need a little help!
Can you guys please tell me what’s the issue in this snippet?
https://www.codechef.com/viewsolution/26061437

The corresponding problem to the solution is:

Any help would be appreciated.

Please guide me if in case I have done any mistake in the forum. It’s my first post here.

Integer Overflow. Use long long in case of count.

1 Like

Thank you so much :star_struck::star_struck: