摘要: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=3957题意:m个位置,每个位置填1~n的数,求至少有L个位置的数一样的概率(1#include #include using namespace std;struct inum {... 阅读全文
posted @ 2015-02-26 20:46 iwtwiioi 阅读(224) 评论(0) 推荐(0) 编辑
摘要: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=3754题意:有三个色子,分别有k1、k2、k3个面,权值分别是1~k1, 1~k2, 1~k3,等概率朝上。如果朝上的面分别为a、b、c,则分数置0,否则累加权值和。当权值和>n时... 阅读全文
posted @ 2015-02-26 20:33 iwtwiioi 阅读(178) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/problemset/problem/148/D题意:w个白b个黑,公主和龙轮流取,公主先取,等概率取到一个。当龙取完后,会等概率跳出一只。(0using namespace std;int n, m;const int N=1005;double d[N... 阅读全文
posted @ 2015-02-26 20:19 iwtwiioi 阅读(227) 评论(0) 推荐(0) 编辑