-
Category : Data structs
Tags :
- Update : 2012-11-26
- Size : 8kb
- 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
joseph ring* Description: The number is 1, 2, ......, n-n individuals sitting around the circle clockwise, each person has only one password (positive integer). Choose a positive integer as the reported number of the upper limit of m,, since the number of a start sequence reported from the first one is still clockwise, the report m stop the reported number. Reported m the person out of the line, his password as the new values of m, starting from the next person in the clockwise direction from a number off again, and so on, until all all columns so far. Design a program to calculate the column order.* Requirements: one-way circular linked list storage structure simulation of this process, in accordance with the order of the columns to output the number of individuals. Test data: initial value of m 20, n = 7, 7 personal password followed by 3,1,7,2,4,7,4, first of all m, = 6, then the correct output is what? Input data: the establishment of input processing the input data,
Packet file list
(Preview for download)
Joseph\Joseph.cpp
......\Joseph.dsp
......\Joseph.dsw
......\Joseph.ncb
......\Node.h
......\ReadMe.txt
......\sqLinkList.h
......\StdAfx.cpp
......\StdAfx.h
Joseph
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