What is wrong?

I get proper answer as required for this problem:
https://www.codechef.com/problems/KS2

My solution is:
https://www.codechef.com/viewsolution/26060847

It is showing “Wrong solution” when i submit my solution. What is my mistake?

https://www.codechef.com/viewsolution/24542586
i did this…to solve the question
i feel like you are missing a few test cases
compare test cases from my solution to yours :slight_smile:
i suggest looking for values above 100!

1 Like