BUY1GET1 - wrong answer

I am getting right answer for given test cases on my system, but after submission I always get wrong answer(BUY1GET1 Problem). I didn’t figure out what is the problem. Plz help.

1 Like

please wait for the contest to be over first… :slight_smile:

2 Likes

there must be a small bug in your program that you are overlooking… try reading it line line again n figure out the bug…:wink: that will help

http://www.codechef.com/viewsolution/1799642 please help me . Unable to resolve the runtime eror

no-one helps you until the end of contest, read more here - http://discuss.codechef.com/questions/855/what-kind-of-comment-should-i-post-on-the-problem-page , this is a contest, you have to figure it out yourself

@rishantagarwal http://www.codechef.com/wiki/faq#Why_do_I_get_a_SIGSEGV go to this and see.

1 Like

@rishantagarwal i’m also faci’n the same problem … :frowning: Which language did you use … coz i am using Python …