码迷,mamicode.com
首页 >  
搜索关键字:概率dp    ( 897个结果
[ACM] HDU 4576 Robot (概率DP,滚动数组)
Robot Problem Description Michael has a telecontrol robot. One day he put the robot on a loop with n cells. The cells are numbered from 1 to n clockwise. At first the robot is in ce...
分类:其他好文   时间:2014-08-01 19:55:22    阅读次数:319
概率dp poj2096
Collecting Bugs Time Limit: 10000MS   Memory Limit: 64000K Total Submissions: 2341   Accepted: 1126 Case Time Limit: 2000MS   Special Judge Description Ivan is fon...
分类:其他好文   时间:2014-08-01 13:35:51    阅读次数:199
[ACM] ZOJ 3329 One Person Game (概率DP,有环,巧妙转化)
One Person Game Time Limit: 1 Second      Memory Limit: 32768 KB      Special Judge There is a very simple and interesting one-person game. You have 3 dice, namely Die1, Die2 and Die3. Die1 ha...
分类:其他好文   时间:2014-07-31 20:51:57    阅读次数:311
[ACM] hdu 3853 LOOPS (概率DP,递推)
LOOPS Problem Description Akemi Homura is a Mahou Shoujo (Puella Magi/Magical Girl). Homura wants to help her friend Madoka save the world. But because of the plot of the Boss Incubator, ...
分类:其他好文   时间:2014-07-31 13:31:27    阅读次数:232
hdu 4870 Rating(概率DP&高数消元)
Rating Time Limit: 10000/5000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 714    Accepted Submission(s): 452 Special Judge Problem Description A little gi...
分类:其他好文   时间:2014-07-31 09:54:16    阅读次数:303
[ACM] hdu 4405 Aeroplane chess (概率DP)
Aeroplane chess Problem Description Hzz loves aeroplane chess very much. The chess map contains N+1 grids labeled from 0 to N. Hzz starts at grid 0. For each step he throws a dice(a dice hav...
分类:其他好文   时间:2014-07-31 09:49:57    阅读次数:208
hdu 4405 概率dp 2012年金华亚洲网络赛--虽然水,但是是自己独立做的第一道概率dp
题目:http://acm.hdu.edu.cn/showproblem.php?pid=4405 e[i]:当前在位置i还需要走的步数期望 受刘汝佳的AC自动机那个后缀链接写法的启发,我的x[i]通过逆序算出来连续有“flight line ”的时候,能到达的最远距离, rep(i,0,m) { scanf("%d%d",&xx,...
分类:其他好文   时间:2014-07-29 14:22:38    阅读次数:252
[ACM] POJ 3071 Football (概率DP)
Football Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 2875   Accepted: 1462 Description Consider a single-elimination football tournament involving 2n...
分类:其他好文   时间:2014-07-28 16:22:33    阅读次数:272
UESTC 2014 Summer Training #10 Div.2
B.Race to 1UVA 11762 第一次接触概率dp,完全没想到是dp...没想到能递推出来0 0 首先需要知道 总的期望=每件事的期望×每件事发生的概率 然后可以根据这个来写递推公式,也是dp? 假设不小于x的质数有m个,x的质因子有n个(种 更确切),那么在求X的期望时,可以考虑...
分类:其他好文   时间:2014-07-27 21:37:35    阅读次数:280
hdu 4870(概率Dp)
首先我们以50分为一单位,于是赢一次得1分输一次扣2分,由于每次都用小号打,所以容易观察出最后达到20分时应该分别为20分和19分。我们设dp[i]为i到i+1分的期望步数。则dp[i]=p*1+(1-p)*(dp[i-2]+dp[i-1]+dp[i]+1),前者是赢的期望,后者由于输了2分,所以变成i+1分时需要从i-2->i-1->i->i+1,就是dp[i-2]+dp[i-1]+dp[i]+...
分类:其他好文   时间:2014-07-26 15:02:20    阅读次数:161
897条   上一页 1 ... 82 83 84 85 86 ... 90 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!