SAMESNAK - Editorial

I can’t see what’s wrong with my code either:
//www.codechef.com/viewsolution/13742391
(It gets WA.)

edit: I have found the bug now. My code didn’t work for the case: both snakes vertical and one of length 0 inside the other.

1
2 0 2 3
2 1 2 1
no

Can someone please point out where did i go wrong .I cannot find any test case where it is going wrong

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

ThankYou !!

Whats wrong with my code? Can someone figure out?
https://www.codechef.com/viewsolution/13685172

What’s Wrong With my code , Here it islink text

It is showing WA.
inbetween(x,y,z) means that if y lies between x and z
issingle() gives that snake will be a single point
ishorizontal() gives that snake is horizontal
isvertical() gives that snake is vertical

Can someone point out mistake in my code - WA : CodeChef: Practical coding for everyone
Thanks in advance

Can someone tell me, what’s wrong with my solution ? Or any test case that it fails for?

I can’t find out what is wrong with my solution. I have tried all the test cases I can think of and it gives the correct output. It would be very helpful if anyone could suggest some test case that fails.Thanks!
Here is my solution - CodeChef: Practical coding for everyone

Can please anyone help me find the error in this solution CodeChef: Practical coding for everyone

can anyone please tell me where did i go wrong here is my solution to the problem … i’d be glad if anyone can help me to find my mistake

Can Somebody please help me with this?? CodeChef: Practical coding for everyone

This is my Logic:

  • If both snakes are horizontal (or vertical) , at least one of the ends of a snake
    must be between or on the ends of the other.

  • If snake 1 is horizontal and snake 2 is vertical, exactly
    one end point of the snakes must coincide.

Can anyone please provide a test case for this solution ? The solution seems straightforward and easy to understand:
https://www.codechef.com/viewplaintext/13734952

can someone tell me,whats wrong with my solution,or suggest a test case it fails for
https://www.codechef.com/viewsolution/13760654
thanks

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

This is my solution. I guess the cases most users must be missing is complete overlap of two snakes.
eg

0 2 0 8
0 3 0 5

Here the answer should be yes. My solution is pretty simple, as it takes all cases into consideration and uses if-else alone to print the answer.

Can you please provide the test case for which my code fails.Link to my code is-
https://www.codechef.com/viewsolution/13772896

@jayprakash_a
test case failing
-1 2 -4 2 -1 2 8 2
answer should be no

@jeetu86044 for input -1 2 -4 2 -1 2 8 2 answer should be “yes” I guess.How can it be “no” when they have one overlapping point i.e. -1 2. Correct me if I am wrong.

@the_king_i_am

yes it was actually typing mistake

the original test case is:
1 2 4 2 -1 2 -8 2

ans: no

hi,
could anyone please look at my code and tell me for which test case it fails, i am unable to find the failed test case.

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

This is my code, can some one point out the mistake please link- CodeChef: Practical coding for everyone

From past two-three days I am not been able to find out where I am getting wrong. Here is Link of my solution.
Can you help me out please. @shashank96 @sumedhk @jeetu86044 @the_king_i_am