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

×

SPOJ White Hats

CLICK HERE FOR PROBLEM STATEMENT
getting wrong answer . ! Can Anyone please give me the tricky cases ??

asked 23 Dec '14, 13:45

vsukeeshbabu's gravatar image

2★vsukeeshbabu
78727
accept rate: 0%


These may help:
5
2 2 2 2 4
Answer = -1

5
3 3 1 3 3
Answer = -1

5
3 3 3 2 2
Answer=-1

5
4 4 4 4 4
Answer=5

5
5 5 4 4 4
Answer=-1

6
4 4 4 4 3 3
Answer=-1

6
0 1 1 1 1 1
Answer = 1

6
4 4 4 3 3 3
Answer=-1

Happy Coding! :)
link

answered 23 Dec '14, 14:02

shivam1511's gravatar image

5★shivam1511
4382414
accept rate: 22%

edited 23 Dec '14, 14:45

1

@shivam1511 The Answer for
5
4 4 4 4 4
would be 5, right?

(23 Dec '14, 14:26) vsukeeshbabu2★
1

Yes..corrected :)

(23 Dec '14, 14:45) shivam15115★
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:

×2,474
×1,916
×1,136
×856
×1
×1

question asked: 23 Dec '14, 13:45

question was seen: 2,464 times

last updated: 23 Dec '14, 14:45