HangoverTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 108445Accepted: 52837DescriptionHow far can you make a stack of cards overhang a tabl...
分类:
其他好文 时间:
2015-05-21 12:28:57
阅读次数:
121
There are n players sitting at a round table. All of them have s cards
of n colors in total. Besides, initially the first person had cards of only the first color, the second one had cards of only t...
分类:
其他好文 时间:
2015-05-19 01:58:37
阅读次数:
115
Taha has got a standard deck of cards with him. In addition to the 52 regular ones, there are 2 joker cards. Every regular card has a rank and a suit. The ranks in ascending order are: A, 2, 3, 4, 5, 6...
分类:
其他好文 时间:
2015-05-18 09:10:39
阅读次数:
163
Multiplication Puzzle
Description
The multiplication puzzle is played with a row of cards, each containing a single positive integer. During the move player takes one card out of the row and scores the number of points equal to the product of the number o...
分类:
其他好文 时间:
2015-05-17 12:18:43
阅读次数:
88
这次文章主要引用了网上的这篇教学http://www.cwflynt.com/TclForTeens/ 步骤a 下载第17课里提到的扑克图像包 http://www.cwflynt.com/TclForTeens/cards.zip 解压缩cards.zip内所有文件到c:\cards\目录下 【你可...
分类:
编程语言 时间:
2015-05-14 06:26:09
阅读次数:
244
DescriptionLet's remember one old joke:Once a gentleman said to another gentleman:— What if we play cards?— You know, I haven't played cards for ten y...
分类:
其他好文 时间:
2015-05-12 15:29:20
阅读次数:
175
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4876
题意:给你N,l,k三个数,N代表N个数,从中任选k个数,然后
这k个数组成一个环,可以从这个环中选连续的1-k个数进行异或和
,把所得到的值填充到l的后面,使得有一个数r让l-r之间所有的整
整数都被这些异或和填满,求最大的r,也许表达的不太清楚,其实
就是找一个最大的r,使得给定的...
分类:
其他好文 时间:
2015-05-07 22:13:48
阅读次数:
149
果然是数学题,感觉就是阅读题,加上小小的思维How far can you make a stack of cards overhang a table? If you have one card, you can create a maximum overhang of half a card l...
分类:
其他好文 时间:
2015-05-07 21:42:12
阅读次数:
123
Polya计数+dp求满足对应循环的不动点有几个
1004: [HNOI2008]Cards
Time Limit: 10 Sec Memory Limit: 162 MB
Submit: 2046 Solved: 1212
[Submit][Status][Discuss]
Description
小春现在很清闲,面对书桌上的N张牌,他决定给每张染色,目前小春...
分类:
其他好文 时间:
2015-05-07 14:34:30
阅读次数:
142
题目意思:有N张牌,标号为1~N,且牌以叠好,从上到小就是标号1~N的牌,只要牌堆数量大于等于2的时候,就采取如下操作:将最上面的牌扔掉(即离开牌堆)。刚才那张牌离开后,再将新的最上面的牌放置于牌堆最后一张。要求输出:依次输出被扔掉的牌,按扔掉的顺序输出。最后要输出最后留下的一张牌。思路:用一个队列...