Hot Search : Source embeded web remote control p2p game More...
Location : Home Downloads SourceCode Mathimatics-Numerical algorithms Data structs

约瑟夫环

  • Category : Data structs
  • Tags :
  • Update : 2018-04-09
  • Size : 1kb
  • 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
The Joseph question is a classic question. Known n individuals (may as well as number 1, 2, 3,..., n representative) sit around a round table, start from people numbered K, and start clockwise from 1 to 1, 2, 3,..., the time needle counts to the m person, out and out. Then from the next on the next person, from 1 to the 1 to continue clockwise, the number to the person, out and output,... Then repeat, until the round table all out of the list. Input: n, K, M Output: according to the order of output, the number of the listed people is numbered. The number is separated by one space, and each 10 numbers are one row. The corresponding output of illegal input is as follows A) Input:: n, K, and m are less than 1 Output: n, m, K must bigger than 0. B) Input: k>n Output: K should not bigger than n. example input 9,3,2 output 468137295
Packet file list
(Preview for download)
FilenameSizeUpdate
约瑟夫环.cpp 722 2018-03-13
寻找特殊偶数.cpp 809 2016-04-02
未命名2.cpp 248 2016-03-19
未命名1.cpp 360 2018-03-13
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

Nothing.

Post Comment
*Quick comment Recommend Not bad Password Unclear description Not source
Lost files Unable to decompress Bad
*Content :
*Captcha :
DSSZ is the largest source code store in internet!
Contact us :
1999-2046 DSSZ All Rights Reserved.