文件名称:Joseph
介绍说明--下载内容均来自于网络,请自行研究使用
约瑟夫环
输入说明:
多组数据,输入数据第一行为一个整数表示有几组数据,每组数据由两行构成,每组数据的第一行为两个正整数n和m,分别表示人的个数及初始随机数,每组数据的第二行为n个整数,表示每个人持有的密码。
输出说明:
对每组数据用一行输出n个整数表示依次出圈人的编号,整数之间用空格分隔
-Enter a descr iption: multiple sets of data, the input data first act an integer representing several sets of data, each data constituted by the two rows, each data of the first acts of two positive integers n and m, respectively, and the number of people initial random numbers, each set of data to the second act n integers, which means that each person holds password. Output Descr iption: For each line of output data with n integers represent the number of people turn out the circle, separated by spaces between integers
输入说明:
多组数据,输入数据第一行为一个整数表示有几组数据,每组数据由两行构成,每组数据的第一行为两个正整数n和m,分别表示人的个数及初始随机数,每组数据的第二行为n个整数,表示每个人持有的密码。
输出说明:
对每组数据用一行输出n个整数表示依次出圈人的编号,整数之间用空格分隔
-Enter a descr iption: multiple sets of data, the input data first act an integer representing several sets of data, each data constituted by the two rows, each data of the first acts of two positive integers n and m, respectively, and the number of people initial random numbers, each set of data to the second act n integers, which means that each person holds password. Output Descr iption: For each line of output data with n integers represent the number of people turn out the circle, separated by spaces between integers
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Joseph.c