#mice

Codeforces Round #105 D. Bag of mice 概率dp

http://codeforces.com/contest/148/problem/D题目意思是龙和公主轮流从袋子里抽老鼠。袋子里有白老师W仅仅。黑老师D仅仅。公主先抽,第一个抽出白老鼠的胜利,龙每次抽的时候会随机跑出一仅仅老鼠。给出W和D要你求出公主胜利的概率。对于dp[w][d]表示有w仅仅白老鼠d仅仅黑老鼠的情况...

1056. Mice and Rice (25)

MiceandRice isthenameofaprogrammingcontestinwhicheachprogrammermustwriteapieceofcodetocontrolthemovementsofamouseinagivenmap.Thegoalofeachmouseistoeatasmuc...
代码星球 代码星球·2020-04-08