文件名称:15
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:210.95kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
纸牌问题:
编号为1-52张牌,正面朝上,从第2张开始,以2为基数,是2的倍数的牌翻一次,直到最后一张牌;然后,从第3张开始,以3为基数,是3的倍数的牌翻一次,直到最后一张牌;然后.........一直下去,……从第51张牌开始,以51为基数,是51的倍数的牌翻一次,直到最后一张;从第52张牌开始,以52为基数,是52的倍数的牌翻一次,直到最后一张。
试编写程序,输出结束后正面向上的牌的序号。
-Solitaire problem:
Numbered 1-52 cards, face up, from the first two base 2 is a multiple of 2 cards turning once, until the last card then 3 of 3 as the base is a multiple of 3 cards turning once, until the last card then ......... keep on going, ... from the 51 cards, 51 for the base, is a multiple of 51 cards turned time, until the last one 52 card 52 as the base, is a multiple of 52 cards turning once, until the last one.
Try to write the serial number of the program, the output after the end of the face up cards
编号为1-52张牌,正面朝上,从第2张开始,以2为基数,是2的倍数的牌翻一次,直到最后一张牌;然后,从第3张开始,以3为基数,是3的倍数的牌翻一次,直到最后一张牌;然后.........一直下去,……从第51张牌开始,以51为基数,是51的倍数的牌翻一次,直到最后一张;从第52张牌开始,以52为基数,是52的倍数的牌翻一次,直到最后一张。
试编写程序,输出结束后正面向上的牌的序号。
-Solitaire problem:
Numbered 1-52 cards, face up, from the first two base 2 is a multiple of 2 cards turning once, until the last card then 3 of 3 as the base is a multiple of 3 cards turning once, until the last card then ......... keep on going, ... from the 51 cards, 51 for the base, is a multiple of 51 cards turned time, until the last one 52 card 52 as the base, is a multiple of 52 cards turning once, until the last one.
Try to write the serial number of the program, the output after the end of the face up cards
(系统自动生成,下载前可以参看下载内容)
下载文件列表
15/15.ncb
15/15.plg
15/15.dsp
15/15.cpp
15/15.opt
15/15.dsw
15/Debug/vc60.idb
15/Debug/vc60.pdb
15/Debug/15.exe
15/Debug/15.pdb
15/Debug/15.pch
15/Debug/15.ilk
15/Debug/15.obj
15/Debug
15
15/15.plg
15/15.dsp
15/15.cpp
15/15.opt
15/15.dsw
15/Debug/vc60.idb
15/Debug/vc60.pdb
15/Debug/15.exe
15/Debug/15.pdb
15/Debug/15.pch
15/Debug/15.ilk
15/Debug/15.obj
15/Debug
15
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.