文件名称:Joseph
-
所属分类:
- 标签属性:
- 上传时间:2013-05-26
-
文件大小:898byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
约瑟夫环
输入说明:
多组数据,输入数据第一行为一个整数表示有几组数据,每组数据由两行构成,每组数据的第一行为两个正整数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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.