#P2021. faebdc玩扑克
faebdc玩扑克
Description
zky has playing cards numbered from to . zky arranges them into a sequence. Each time, move the top card to the bottom of the deck, then take the next card out and output it. Repeat until all cards are output. The final output sequence is exactly from to . faebdc asks you what the original sequence is. Because faebdc, a "shen niu" (top coder), has already obtained the answer in time, if you cannot answer within 1 s, faebdc will eat you.
Input Format
An integer , representing the number of cards.
Output Format
Output integers, representing the original card sequence, separated by spaces.
13
7 1 12 2 8 3 11 4 9 5 13 6 10
Hint
Constraints: For of the testdata, .
Translated by ChatGPT 5
京公网安备 11011102002149号