Just to clarify the second case on the sample input.

The perfect deck for K = 15 is:
1, 11, 2, 8, 7, 3, 13, 9, 6, 4, 15, 14, 12, 10, 5.

Hence the cards on the indices 3, 4, 7 and 10 are, respectively 2, 8, 13 and 4.

-- 
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 google-code@googlegroups.com
To unsubscribe from this group, send email to 
google-code+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-code?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to