here’s my solution in c.
Can anybody tell me why it is giving me wrong answer.plzzzzz
https://www.codechef.com/viewsolution/13990446
https://www.codechef.com/viewsolution/13999283
hey what’s wrong with this code. its giving me wrong answer. Plz help
Could someone help me figure out what is wrong with this solution:
https://www.codechef.com/viewsolution/13973763
Thanks in advance.
Here’s my code in Java : CodeChef: Practical coding for everyone . Apparently, it is the wrong answer. I can’t seem to find any mistake in it. Can anyone help me in finding my errors.
hey what’s wrong with this code. its giving me wrong answer.
https://www.codechef.com/viewsolution/14135108
What I did was I moved from left to right until n-1 and check if i th and i+1 th characters are different. If they are different I skip this check for i+1 th index and increase a counter by 1.
In the end I count ‘s’ and ‘m’ and subtract counter value from ‘s’ and check what is greater and write the answer.
But this approach gave me a wrong answer can someone tell me why?
i have written code in c.what is wrong with these code?
https://www.codechef.com/viewsolution/14162288
My code in java : CodeChef: Practical coding for everyone. It is giving wrong answer. I am not able to find out the reason. Sir, can you please help me out to find the error. Thank You.
your code goes wrong for this input
1
msmmssss
answer is tie but your code is giving mongooses
Here is my C# answer : CodeChef: Practical coding for everyone
Unfortunately I am receiving runtime error here. Can anyone please help me out?
why i am getting run time error, my code is: CodeChef: Practical coding for everyone
since this code executed successfully in visual studio with proper output.
Hey what’s wrong with this code.
Its giving me wrong answer… CodeChef: Practical coding for everyone
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 CodeChef: Practical coding for everyone
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.
try
1
msssssmsm
tie
this test case will solve your doubt