文件名称:cardgame
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:568byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
编号为1-52张牌,正面向上,从第2张开始,以2为基数,是2的倍数的牌翻一次,直到最后一张牌;然后,从第3张开始,以3为基数,是3的倍数的牌翻一次,直到最后一张牌;然后…从第4张开始,以4为基数,是4的倍数的牌翻一次, 直到最后一张牌;...再依次5的倍数的牌翻一次,6的,7的直到以52为基数的翻过,输出:这时正面向上的牌;测试数据:52张牌
这时是正面的编号为:
1 4 9 16 25 36 49-1-52 number cards, face up, starting from 2 to 2 as the base, is a multiple of 2 cards turning once, until the last card and then started from 3 to 3 as the base, is a multiple of 3 cards turning once, until the last card and then ... start from 4 to 4 as the base, is a multiple of 4 cards turning once, until the last card ... then in turn 5 turn from multiple cards, 6, 7 to 52 as the base until the turn, the output: when the cards face up test data: 52 cards, then a positive number: 14916253649
这时是正面的编号为:
1 4 9 16 25 36 49-1-52 number cards, face up, starting from 2 to 2 as the base, is a multiple of 2 cards turning once, until the last card and then started from 3 to 3 as the base, is a multiple of 3 cards turning once, until the last card and then ... start from 4 to 4 as the base, is a multiple of 4 cards turning once, until the last card ... then in turn 5 turn from multiple cards, 6, 7 to 52 as the base until the turn, the output: when the cards face up test data: 52 cards, then a positive number: 14916253649
(系统自动生成,下载前可以参看下载内容)
下载文件列表
cardgame.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.