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

×

Maximize K Product - wrong solution?

There is no editorial for this problem, but exists few same solution, for instance: https://www.codechef.com/viewsolution/20215651

This greedy solutions as I see for test: 5 2 3 10 8 4 3 3

will give 13*15 = 195.

But optimal as I see: 14*14 = 196.

Am I right? Does this problem have polynomial solution?

asked 18 Sep '18, 14:59

batura_dima's gravatar image

5★batura_dima
1264
accept rate: 5%

edited 25 Sep '18, 00:54

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:

×218
×12
×4

question asked: 18 Sep '18, 14:59

question was seen: 350 times

last updated: 30 Oct '18, 22:00