3036 - Pick It

Discussion around the problems of the COJ.
Forum rules
Remember that posting AC code is not allowed here. If you are going to ask a question or to post a solution, describe your algorithm instead. Posting AC code will be penalized.
Post Reply
User avatar
ymondelo20
Posts: 1968
Joined: 9 years ago
Location: Universidad de las Ciencias Informáticas
Gender: None specified
Contact:

3036 - Pick It

Post by ymondelo20 » 6 years ago



"Every problem has a simple, fast and wrong solution" OJ's Main Law. ;)

humbertodiaz
Posts: 97
Joined: 6 years ago
Gender: None specified

Re: 3036 - Pick It

Post by humbertodiaz » 6 years ago

Hay algo extraño aqui. Yo logre obtener sumas que son mayores que las que estan en los ejemplos. Por ejemplo, en el primer caso, uno puede seleccionar los valores en el siguiente orden: 1, 2, 3, 4. Eso da la suma (5+1+2) + (5+2+3) + (5+3+4) + (5+4+5) = 44.

Lo mismo pasa con el segundo ejemplo. La secuencia que yo use es 1, 2, 3, 5. Eso da la suma (2+1+5) + (5+2+5) + (5+3+4) + (5+5+4) = 46.

...Que esta pasando aqui? o_O

Post Reply

Return to “Problem set”