-
Category : Data structs
Tags :
- Update : 2012-11-26
- Size : 26kb
- Downloaded :0次
- Author :刘****
- About :
Nobody
- PS : If download it fails, try it again. Download again for free!
Introduction - If you have any usage issues, please Google them yourself
1, Joseph is a description of the problem: number 1,2,3-, n of n individuals sitting around the circle clockwise,
Each person has a password (positive integer). Choose the beginning of a positive integer value as reported on the line number m, from the first
Reported a clockwise direction starting number, to report m, the number of stops reported. Reported m the person out of the column, as his new password
m value, in the clockwise direction from his personal resume on the next number from a newspaper, and so on, until all
All the columns.
2, the program runs, the first requires the user to specify a limit on the number of the initial report, then read a personal password. Can be set n ≤ 30.
3, the test data: m = 20 n = 7 password once: 3,1,7,2,4,8,4.
Packet file list
(Preview for download)
c++.doc
Related instructions
- We are an exchange download platform that only provides communication channels. The downloaded content comes from the internet. Except for download issues, please Google on your own.
- The downloaded content is provided for members to upload. If it unintentionally infringes on your copyright, please contact us.
- Please use Winrar for decompression tools
- If download fail, Try it againg or Feedback to us.
- If downloaded content did not match the introduction, Feedback to us,Confirm and will be refund.
- Before downloading, you can inquire through the uploaded person information