随笔分类 -  acm-概率

摘要: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 阅读(118) 评论(0) 推荐(0)
摘要:src: http://acm.hdu.edu.cn/showproblem.php?pid=4762 c++写大数模版的乘法中,例a*b,则a的第i位*b的第j位的结果存到ret的i+j位开始的位置~~~ 以落在最左边的一颗来考虑,其余落在其右边概率为1/m^(n-1),考虑每一个都可能在最左,实 阅读全文
posted @ 2018-04-14 22:07 WindFreedom 阅读(124) 评论(0) 推荐(0)