文件名称:3032
- 所属分类:
- 棋牌游戏
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 926kb
- 下载次数:
- 0次
- 提 供 者:
- guizh******
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
一个经典纸牌游戏,第一次将一张纸牌从最上面移到最先面,从最上面抽一张放到桌子上,第二次两张,从最上面抽一张放到桌子上,第三次三张.......一次类推。使放到桌上的牌的顺序为1、2....n。求开始的顺序。-POJ 3032
The magician shuffles a small pack of cards, holds it face down and performs the following procedure:
The top card is moved to the bottom of the pack. The new top card is dealt face up onto the table. It is the Ace of Spades.
Two cards are moved one at a time from the top to the bottom. The next card is dealt face up onto the table. It is the Two of Spades.
Three cards are moved one at a time…
This goes on until the nth and last card turns out to be the n of Spades.
This impressive trick works if the magician knows how to arrange the cards beforehand (and knows how to give a false shuffle). Your program has to determine the initial order of the cards for a given number of cards, 1 ≤ n ≤ 13.
The magician shuffles a small pack of cards, holds it face down and performs the following procedure:
The top card is moved to the bottom of the pack. The new top card is dealt face up onto the table. It is the Ace of Spades.
Two cards are moved one at a time from the top to the bottom. The next card is dealt face up onto the table. It is the Two of Spades.
Three cards are moved one at a time…
This goes on until the nth and last card turns out to be the n of Spades.
This impressive trick works if the magician knows how to arrange the cards beforehand (and knows how to give a false shuffle). Your program has to determine the initial order of the cards for a given number of cards, 1 ≤ n ≤ 13.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
3032
....\3032.dsp
....\3032.dsw
....\3032.ncb
....\3032.opt
....\3032.plg
....\Debug
....\.....\3032.exe
....\.....\3032.ilk
....\.....\3032.pch
....\.....\3032.pdb
....\.....\test.obj
....\.....\vc60.idb
....\.....\vc60.pdb
....\test.cpp
....\3032.dsp
....\3032.dsw
....\3032.ncb
....\3032.opt
....\3032.plg
....\Debug
....\.....\3032.exe
....\.....\3032.ilk
....\.....\3032.pch
....\.....\3032.pdb
....\.....\test.obj
....\.....\vc60.idb
....\.....\vc60.pdb
....\test.cpp