You are not logged in. Please login at www.codechef.com to post your questions!

×

test cases for CHSIGN of May Challenge 2018 Division 2

I try to solve this question ,even i have created a solution for this problem.But unfortunately none of the test cases pass.but my basic test cases were able to pass.Can anyone suggest me some test cases .Where my code fails.According to me my code is correct.Please help me!

my code of this solution is here https://www.codechef.com/viewsolution/18506042

asked 14 May '18, 15:52

nishu112's gravatar image

1★nishu112
202
accept rate: 0%

edited 14 May '18, 17:59

can You provide your code please...??

(14 May '18, 15:55) l_returns5★

yeah forgot to mention my code link .Now i have added that @l_returns

(14 May '18, 18:00) nishu1121★

2

9

3 5 1 4 3 8 4 7 3

13

3 2 3 1 5 4 6 5 7 6 7 6 7

link

answered 14 May '18, 15:57

l_returns's gravatar image

5★l_returns
1.4k19
accept rate: 25%

edited 14 May '18, 15:57

-3 5 1 4 -3 8 -4 7 3

3 -2 3 1 5 4 6 -5 7 6 7 -6 7

(14 May '18, 15:59) l_returns5★

i got where i have done wrong.Thanks to your second test case .

(14 May '18, 18:03) nishu1121★

welcome.. :)

(14 May '18, 18:05) l_returns5★

Don't know if this is the right place to ask or not, but I almost solved this problem I knew it was dp and and I had even thought of all possible case. I was just not able to come up with the state in terms of i, And I didn't really gave much efforts after I was stuck there. Is this because of lack of practise ? or I was just being lazy and now I am looking for an excuse. (... really want an anonymous feature to ask such dumb question without knowing, some one is probably going to bring this up in a social conversation :p )

link

answered 14 May '18, 22:16

chaitya_62's gravatar image

3★chaitya_62
16316
accept rate: 10%

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×422
×250

question asked: 14 May '18, 15:52

question was seen: 678 times

last updated: 14 May '18, 22:16