oh my god my english is poor
在2009-09-01,"Luke Pebody" <[email protected]> 写道: Let us label the fifteen cards in the order they start A, B, ... , O. So the initial order is ABCDEFGHIJKLMNO. The top card (A) is picked, and then the next card (B) is put to the bottom of the pack so the order is now CDEFGHIJKLMNOB. Now the top card (C) is picked and the next two cards (D,E) are put to the bottom so the order is FGHIJKLMNOBDE. This continues, and after transferring cards to the bottom, the orders are: JKLMNOBDEGHI, OBDEGHIKLMN, IKLMNBDEGH, EGHKLMNBD, DGHKLMNB, HKLMNBG, NBGKLM, BGKLM, MGKL, GKL, LK, K. Thus the cards are pulled off in the order ACFJO then IEDHN then BMGLK. The question asks in what order the original 3rd, 4th, 7th and 10th cards are pulled off. These are C, D, G and J, and were pulled off 2nd, 8th, 13th and 4th respectively. On 31 Aug 2009, at 05:37, "parashar.ankur" <[email protected]> wrote: > > for the Input Case.. > Input > 2 > 5 > 5 1 2 3 4 5 > 15 > 4 3 4 7 10 > > the output is > > Output > Case #1: 1 3 2 5 4 > Case #2: 2 8 13 4 > > i got the case 1 bt unable to understand case2 somebody tell me in > detail my be i'm getting this question wrong. > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
