题目链接:
啊哈哈,点我点我
思路:从终点向前递推。
首先p[I]表示从第i个点到终点的概率。则分为两种情况进行考虑。
【1】已经翻到的点则它必定会到终点,则概率为1.
【2】不知道的点则要进行枚举。那么p[i]=sum(p[i+j])/13(2=
为什么要逆推,因为从前往后走,要用到后面的状态。
哎,自己的dp好弱啊,一个暑假好像都没怎么做。。哎,加油啊!!!
题目:
...
分类:
其他好文 时间:
2014-08-30 20:28:00
阅读次数:
331
root@phyCORE-AM335x:~ aplay -l**** List of PLAYBACK Hardware Devices ****card 0: audio [PCM051 audio], device 0: wm8976 wm8976-hifi-0 [] Subdevices: 1...
分类:
其他好文 时间:
2014-08-29 10:51:47
阅读次数:
413
题意 给你一些牌 全部正面朝下放桌子上 你选一个起点 翻开那张牌 牌上的数字是几就向前走几步 J,Q,K 都是向前走10步 A向前走11步 知道向前走对应的步数后超过了终点 输入n m 和n个数 代表你以第m张牌为起点 依次掀开了n张牌就不能再掀了 然后同样的牌 Alice以1-10张牌中的任意一个为起点 求Alice最后的终点与你的终点相同的...
分类:
其他好文 时间:
2014-08-28 11:29:19
阅读次数:
254
B. Appleman and Card Gametime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAppleman hasncards. Each...
分类:
移动开发 时间:
2014-08-27 09:21:27
阅读次数:
240
//个人总结,欢迎新增或修改#import
typedef enum{
VALIDATION_TYPE_NUM_VALIDATED = 0,//数字
VALIDATION_TYPE_ID_CARD_VALIDATED = 1,//身份证
VALIDATION_TYPE_MOBILE_PHONE_VALIDATED = 2,//手机号
VALIDATION_TYPE...
分类:
移动开发 时间:
2014-08-25 22:52:46
阅读次数:
296
DescriptionHow 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 length. (We'...
分类:
其他好文 时间:
2014-08-23 01:00:19
阅读次数:
238
Card Game CheaterTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1272Accepted Submission(s): 675Pr...
分类:
其他好文 时间:
2014-08-22 19:33:29
阅读次数:
197
最近使用Mybatis,解析的时候报错,开始以为没法使用sql函数max等,最后发现还是可以使用的。
SQL
SELECT max(trans_time) as trans_time, CARD_NO
from CARD_HISLOG
WHERE ACCT_NO = '1'
GROUP BY CARD_NO ORDER BY TRANS_TIME;
注意mybatis...
分类:
其他好文 时间:
2014-08-22 10:55:36
阅读次数:
6881
A. Winnertime limit per test1 secondmemory limit per test64 megabytesinputstandard inputoutputstandard outputThe winner of the card game popular in Be...
In many manufacturing industries it is a need to print or mark the brand name, seal or other particulars on a product, so it uses the marking techniqu...
分类:
其他好文 时间:
2014-08-19 10:35:03
阅读次数:
255