Description: Internship 1
With n points into a circle of individuals, each person holding a password (positive integer). T is from the first individual start, according to a clockwise direction, "1,2,3,4, ...," reported the number of cycle, a few to m1 (No. t individual s password) is a person out, and then from out of the next person re-start off, a few to m2 (early out who s password) is another person out, so repeat until n individuals are out of date.
The question is: for any given n individual s original order, obtained a list of individuals n the order.
Input data from text file "attachment 1 data. Txt" read. The document has two lines: Line 1 is only one integer, the number reported to express the initial position line 2 are held by n个password.
The results showed that the output on the screen.
For example, read data from text files
2
5 6 3 2 2 4
Screen display
1 6 5 3 4 2
To Search:
- [c_bank] - a language of a simple banking system, d
- [12864] - the driver of 12864 lcm,with the functio
File list (Check if you may need any files):
实习一参考程序.cpp