#t437. 围圈报数
围圈报数
Circle Counting
Problem Background
Special for beginners, ^_^
Problem Description
There are people standing in a circle. Counting starts from the st person; the -th person counted is removed from the circle, then counting restarts from the next person after the removed one, and the -th person counted is removed again, and so on, until all people have been removed. Let the people be numbered . Print the order in which they are removed.
Input Format
and .
Output Format
The order of removal.
Sample Input 1
4 17
Sample Output 1
1 3 4 2
Constraints
, . Time limit 1s, memory limit 1024KiB for each test case.