随笔分类 - 动态规划 概率dp
摘要:E -- Expected value of the expression E -- Expected value of the expression DESCRIPTION You are given an expression: A0O1A1O2A2⋯OnAnA0O1A1O2A2⋯OnAn, w
阅读全文
摘要:题意 游乐园被描述成一张 n 个点,m 条边的无向图(无重边,无自环)。每个点代表一个娱乐项目,第 i 个娱乐项目需要耗费 ci 分钟的时间,会让小 y 和妹子的开心度分别增加 h1i ,h2i ,他们俩初始的开心度都是 0 。每条边代表一条路,第 i 条边连接编号为 xi , yi 的两个娱乐项目
阅读全文
摘要:题目链接:点这里 题意: 1~N标号的球 现在A有C个,B有C个 每次可以随机得到D个不同的球(1~N);问你A或B中的C个球都出现一次的 期望次数 题解: dp[i][j][k]表示 随机出现了i个仅仅属于A的球的个数,仅仅属于B的球的个数,同时属于A,B的球的个数
阅读全文
摘要:Description Given a dice with n sides, you have to find the expected number of times you have to throw that dice to see all its faces at least once. A
阅读全文
摘要:Description As Harry Potter series is over, Harry has no job. Since he wants to make quick money, (he wants everything quick!) so he decided to rob ba
阅读全文
摘要:D. Bad Luck Island The Bad Luck Island is inhabited by three kinds of species: r rocks, s scissors and p papers. At some moments of time two random in
阅读全文
摘要:Alexander Charles McMillan loves to gamble, and during his last trip to the casino he ran across a new game. It is played on a linear sequence of squa...
阅读全文
摘要:D. Painting The WallUser ainta decided to paint a wall. The wall consists ofn2tiles, that are arranged in ann ×...
阅读全文
摘要:Aeroplane chess Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Problem Description...
阅读全文
摘要:Walk Time Limit : 30000/15000ms (Java/Other)Memory Limit : 65536/65536K (Java/Other)Special Jud...
阅读全文
摘要:LOOPSTime Limit: 15000/5000 MS (Java/Others)Memory Limit: 125536/65536 K (Java/Others)Total Submission(s): 3738Accepted Su...
阅读全文
摘要:FootballTime Limit:1000MSMemory Limit:65536KTotal Submissions:3840Accepted:1959DescriptionConsider a single-elimination fo...
阅读全文

浙公网安备 33010602011771号