文件名称:xulie(less20)
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:3.34kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
有一个长度为N的数串,x1,x2,x3,x4,x5......xN。按如下方法取数,第一次将位于数串最前面的x1取出,然后将其后的x2,x3移至数串的尾部,第二次将位于数串最前面的x4取出,然后将其后的x5,x6移至数串的尾部。依此顺序,最后取出的数串顺序刚好是1,2,3,4,5.....N。问当用户输入N值后,求出这个数串刚开始的顺序。-Has a length of N number string, x1, x2, x3, x4, X5 ...... xN is. Fetching as follows, the first will be taken out at the frontmost of the number string X1, then subsequent x2 X3 moved number end of the string, and the second will be located in front of the number string x4 retrieving then after x5, x6 moved to the number of string tail. According to this order, and finally remove the order of the number of string exactly 1,2,3,4,5 ..... N. Q When the user inputs the value of N is obtained order number string beginning.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
竞赛题_序列(20以内).e
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.