I haven't solved this one yet, but this is my interpretation of the problem:
As the problem states, K is the number of cards in the deck (and
the cards are all numbered from 1 to K).
Basically, the problem wants you to compute a perfect deck with K
cards. Then it asks for the value of N cards on the D_i indices of the
deck.
For example, if it asks for the indices 1, 3 and 4 for K = 10, you
should compute a perfect deck with 10 cards (numbered from 1 to 10)
and just output the cards that are on the indices 1, 3 and 4 of the
deck.
For example for a perfect deck with K = 4, we have the following cards
on the following indices:
Indice 1: 1
Indice 2: 4
Indice 3: 2
Indice 4: 3
If it asks you for the indices 1 and 4, you should just output "1 3",
since for a perfect deck with 4 cards has the card 1 on the top and
the card 3 at the bottom.
Hope my interpretation was useful somehow and please, correct me if I'm wrong.
On Thu, Aug 13, 2009 at 12:46 AM, Shoubhik<[email protected]> wrote:
> http://code.google.com/codejam/contest/dashboard?c=agxjb2RlamFtLXByb2RyEAsSCGNvbnRlc3RzGJH6AQw#s=p2
>
> I would request all of you to go through it first.
>
> I could not understand the the difference between 'K' and 'n'
> consequently test cases.(see the second input case 4 3 4 7 10, the
> OUTPUT consists of 2 8 13 4 ) From where did these numbers come . im
> confused . please help.
--
Luiz Ribeiro
http://luizribeiro.org/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"google-codejam" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-code?hl=en
-~----------~----~----~----~------~----~------~--~---