概率DP
文章平均质量分 86
键盘里的青春
加油~
展开
-
概率DP初学整合
什么都不会的概率Dp。。。把一些好的资料收集起来慢慢看把。。。orz这些大神,蔑视我这zz垃圾转自:http://blog.csdn.net/zy691357966/article/details/46776199有关概率和期望问题的研究摘要在各类信息学竞赛中(尤其是ACM竞赛中),经常出现一些与概率和期望有关的题目。这类题目需要较高的数学水平和一定的算原创 2017-03-18 14:59:19 · 4697 阅读 · 0 评论 -
51nod 1639 绑鞋带 (组合数学)
1639 绑鞋带基准时间限制:1 秒 空间限制:131072 KB 分值: 20 难度:3级算法题 收藏 关注有n根鞋带混在一起,现在重复n次以下操作:随机抽出两个鞋带头,把它们绑在一起。可以想象,这n次之后將不再有单独的鞋带头,n条鞋带系成了一些环。那么有多大概率刚好所有这些鞋带只形成了一个环?Input仅一行,原创 2017-05-17 16:54:05 · 563 阅读 · 0 评论 -
hdu 5236 Article 概率dp
ArticleTime Limit: 20 Sec Memory Limit: 256 MB题目连接http://acm.hdu.edu.cn/showproblem.php?pid=5236DescriptionAs the term is going to end, DRD begins to write his final art转载 2017-04-29 22:22:53 · 413 阅读 · 0 评论 -
HDU 5245 Joyful (期望)
D - JoyfulTime Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionSakura has a very magical tool to paint walls. One day, kAc asked Sakura t原创 2017-04-29 20:55:04 · 446 阅读 · 0 评论 -
★HDU 4336 Card Collector 详细题解(状压求期望)
Card CollectorTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4309 Accepted Submission(s): 2172Special JudgeProblem Description原创 2017-03-25 14:10:46 · 918 阅读 · 0 评论 -
HDU 4405 Aeroplane chess (简单期望)
Aeroplane chessTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 361 Accepted Submission(s): 255Problem DescriptionHzz lo原创 2017-03-25 14:02:15 · 389 阅读 · 0 评论 -
zoj 3604 Help Me Escape (记忆化求期望)
Help Me EscapeTime Limit: 2 Seconds Memory Limit: 32768 KBBackground If thou doest well, shalt thou not be accepted? and if thou doest not well, sin lieth at the door. A原创 2017-03-25 13:57:46 · 715 阅读 · 0 评论 -
HDU 3853 LOOPS (简单期望)
LOOPSTime Limit: 15000/5000 MS (Java/Others) Memory Limit: 125536/65536 K (Java/Others)Total Submission(s): 6002 Accepted Submission(s): 2407Problem DescriptionAkemi Homura is a原创 2017-03-25 13:52:36 · 537 阅读 · 0 评论 -
POJ 2096 Collecting Bugs 详细题解(概率DP求期望)
Collecting BugsTime Limit: 10000MS Memory Limit: 64000KTotal Submissions: 5302 Accepted: 2619Case Time Limit: 2000MS Special JudgeDescriptionIvan is f原创 2017-03-25 13:48:14 · 717 阅读 · 0 评论 -
SGU 495 期望 简单推公式
题意: n个盒子里装有礼物,m个人随机选择礼物,选完之后空盒子放回,问选中的礼物数的期望。思路1: 可见m个人是独立的, 所以我们可以从盒子的角度出发。 对于每个礼物不被人选中的概率为((n-1)/n)^m 那么不被选中的礼物数的期望就是 n*((n-1)/n)^m 所以答案就是 n-n*((n-1)/n)^m;原创 2017-03-25 13:38:44 · 493 阅读 · 0 评论 -
POJ 2151 Check the difficulty of problems 详细题解 (概率DP)
Check the difficulty of problemsTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 7351 Accepted: 3174DescriptionOrganizing a programming contest is not原创 2017-03-25 12:46:30 · 902 阅读 · 0 评论 -
CodeForces 148D Bag of mice 详解 (概率DP)
D. Bag of micetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe dragon and the princess are arguing abou原创 2017-03-25 12:29:16 · 674 阅读 · 0 评论 -
POJ 3744 Scout YYF I 详细题解(矩阵优化概率DP)水题
Scout YYF ITime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 8286 Accepted: 2440DescriptionYYF is a couragous scout. Now he is on a dangerous mission wh原创 2017-03-18 21:12:58 · 727 阅读 · 0 评论 -
【SHOI 2002】百事世界杯之旅 (BSOI4841)
【SHOI 2002】百事世界杯之旅Description……在2003年6月之前购买的百事任何饮料的瓶盖上都会有一个百事球星的名字。只要凑齐所有百事球星的名字,就可以参加百事世界杯之旅的抽奖活动,获取球星背包、随身听,更可以赴日韩观看世界杯。还不赶快行动!……”你关上电视,心想:假设有n个不同球星的名字,每个名字出现的概率相同,平均需要买几瓶饮料才能凑齐所有的名字原创 2017-03-18 17:02:08 · 1289 阅读 · 4 评论 -
hdu 5036 Explosion (期望+传递闭包)
ExplosionProblem DescriptionEveryone knows Matt enjoys playing games very much. Now, he is playing such a game. There are N rooms, each with one door. There are some keys(could be none) in e原创 2017-08-30 22:54:51 · 585 阅读 · 0 评论