N多校2018d5t6 take(概率)

src : https://www.nowcoder.com/acm/contest/143/F

https://blog.csdn.net/Lee_w_j__/article/details/81367134

思路:对于每个宝石对于答案的贡献都是独立的。

ac代码:

 

posted @ 2018-08-04 12:03  WindFreedom  阅读(105)  评论(0编辑  收藏  举报