SNELECT - Editorial

why i am getting run time error, my code is: https://www.codechef.com/viewsolution/14254014
since this code executed successfully in visual studio with proper output.

Hey what’s wrong with this code.
Its giving me wrong answer… https://www.codechef.com/viewsolution/14270370

Here is my solution in C++, getting output correctly but in codechef it is showing wrong answer. Please have a look.
https://www.codechef.com/viewsolution/14271038

hi
have a small problem here
my solution is present in the link https://www.codechef.com/viewsolution/14382866
i am getting wrong answer as the result but my c compiler is not giving any wrong output i am scratching my head at this please tell me for which case my answer is wrong
appreciate any help
thanks

@deeptamandas
There are cases where you are subtracting the same snake twice from your total snake count.
For Example consider the testcase:

1
msmmssss

Expected Output : “tie”.
Your Output : “mongooses” (because you subtracted the count for the first snake twice) .

MY code is working fine in blueJ for all possible outputs but it is still giving runtime error NZEC
https://www.codechef.com/viewsolution/14688892

Can someone please have a look at my solution and tell why it is wrong? It seems to pass all test cases.

https://www.codechef.com/viewsolution/15592785

https://www.codechef.com/viewsolution/15954256
can anybody help me out …why i m getting wrong ans

try

1

msssssmsm

tie

this test case will solve your doubt

Someone help me!!!
https://www.codechef.com/viewsolution/18228793

C# : https://www.codechef.com/viewsolution/19629773

SPOILER : Basically I replace all “sm” with “M” , then same with “ms”,
then count “s” for snakes and “M”/“m” for mongooses.

I ran multiple scenario’s and all check ok locally… did I miss anything?

I know, it’s probably part of the challenges on CodeChef, but looking at all these posts here, I wonder why better test feedback is not provided after submission, like in CodeWars.Com for instance…
(ooh, I mentioned a competitor? :wink: )