STICKS - Editorial

Hi,

This is my code
https://www.codechef.com/viewsolution/10630891

Can anyone please help me to tell why is this WA ?

Thanks

y am i getting WA in this solution? https://www.codechef.com/viewsolution/10632476

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

can someone help me with my codeā€¦? its coming as ā€œtime limit exceededā€ā€¦

Can anyone help with the code. I have included the square case too. But I donā€™t know why my solution is not getting accepted. https://www.codechef.com/viewsolution/10624628

@pada1211
Your code fails for
1 4 1 2 3 3

https://www.codechef.com/viewsolution/10621220 I cant seem to figure out whats wrong with my solution. It passes most of the test cases I can come up with.
Please help out. Thanks in advance :slight_smile:
PS: I looked through some solutionsā€¦ They use the size of count array as 10000 whereas the mentioned size is 10^3 = 1000. Why is that so?
I tried both ways by the way. Still wrong answer.

@sreedishps
This case gives Runtime error with your code :
1
7
4 4 3 3 3 3 1

@sebastinsanty,

check the case

1

7

2 3 1 1 2 1 1

answer should be 2

https://www.codechef.com/viewsolution/10644839
Can someone explain why am i getting WA

Can somebody please tell me at what test i got wrong answer
https://www.codechef.com/viewsolution/10647330

Please can anyone point out the error in my code- https://www.codechef.com/viewsolution/10793814

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

I am getting the required output, but its saying wrong answer :frowning:

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

Java Code: I am getting wrong answer for this, while its running perfectly on local compiler.

Yes i have taken some extra boolean flags ā€¦:stuck_out_tongue:

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

Java code: I am getting WA, but its running perfectly on my system.

ye I have taken few extra boolean flags :stuck_out_tongue:

As usual,although I have passed the given test cases,I cant seem to find the reason why my code is getting a WA!

Hereā€™s the link to the code:-

http://pastebin.com/NbKdECcb

Please somebody help me, I am getting WA https://www.codechef.com/viewsolution/10935149

Can anyone help me with my code https://www.codechef.com/viewsolution/11238582 . Getting wrong answer

My Java implementation is giving me wrong answer although itā€™s working on eclipse. https://www.codechef.com/viewsolution/11248379
Please help!

can anyone say me what is wrong with my output??
or which case did i miss
https://www.codechef.com/viewsolution/13211673

C code
Can any one say me what is wrong with the codeā€¦
its working fine in code blocksā€¦but am getting wrong answer warning while submitting.
could anyone please explain??
here is the link
https://www.codechef.com/submit/complete/13211715