文件名称:约瑟夫环
介绍说明--下载内容均来自于网络,请自行研究使用
1.输入格式:第一行为报数上限m(-2147483648<m<2147483647)
第二行为每个人的密码(在输入非整型的数据时结束,如END)
2.输出格式:按出列顺序的每个人的编号
3.程序功能:从第一个人开始沿顺时针方向报数,报到m 的人出列并将他的密码作为新的报数上限m,从已出列的下一个人开始继续沿顺时针方向报数,直到所有人出列。(1. input format: the first behavior reported that the maximum number of M (-2147483648<m<2147483647)
Second the password of each person's behavior (ending at the input of non integer data, such as END)
2. output format: according to the number of each column order
3. program features: starting from the first person in a clockwise direction off, report m and people out of the line of his password as the new number limit m, began to move in a clockwise direction off from the next person out of the column, the column until all the people.)
第二行为每个人的密码(在输入非整型的数据时结束,如END)
2.输出格式:按出列顺序的每个人的编号
3.程序功能:从第一个人开始沿顺时针方向报数,报到m 的人出列并将他的密码作为新的报数上限m,从已出列的下一个人开始继续沿顺时针方向报数,直到所有人出列。(1. input format: the first behavior reported that the maximum number of M (-2147483648<m<2147483647)
Second the password of each person's behavior (ending at the input of non integer data, such as END)
2. output format: according to the number of each column order
3. program features: starting from the first person in a clockwise direction off, report m and people out of the line of his password as the new number limit m, began to move in a clockwise direction off from the next person out of the column, the column until all the people.)
相关搜索: c
(系统自动生成,下载前可以参看下载内容)