概率期望方差
qq_37383726
这个作者很懒,什么都没留下…
展开
-
Bet 【期望】+【gcd】
Bet时间限制: 1 Sec 内存限制: 128 MB Josnch星球是一个赌博之风盛行的星球。每个人一出生就有一定数额的钱,之后的所有收入只能由赌博获得(OMG,如果RP不好,输光了所有的钱。。。)假设赌博公司的某场赌博有 N 个结果,每个结果能获得的赔率比分别是 a[1],a[2]...a[N]。假设现在XXX有 X 块钱,问他选择怎样的策略才能使得最坏情原创 2017-03-03 23:19:47 · 339 阅读 · 0 评论 -
Simple game 【概率期望】
Simple game One day Misha and Andrew were playing a very simple game. First, each player chooses an integer in the range from 1 to n. Let’s assume that Misha chose number m, and Andrew chose number a.原创 2017-04-03 15:37:28 · 240 阅读 · 0 评论 -
【FZU - 2278】- YYS 【java高精度 + 期望计算】
Yinyangshi is a famous RPG game on mobile phones.Kim enjoys collecting cards in this game. Suppose there are n kinds of cards. If you want to get a new card, you need to pay W coins to draw a card. Eac原创 2017-08-21 17:39:17 · 391 阅读 · 0 评论 -
【Wannafly挑战赛8】 D Alice和Bob赌糖果 【赌徒破产模型】
链接:https://www.nowcoder.com/acm/contest/57/D 来源:牛客网时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 32768K,其他语言65536K 64bit IO Format: %lld 题目描述 Alice和Bob赌糖果。规则是这样的:Alice从[ l, r]中随机抽一个数,Bob从[ L, R]中随机抽一个数,谁抽的数原创 2018-02-01 16:39:53 · 4723 阅读 · 1 评论 -
【HDU 6410】序列期望 【期望 + 数学】
Problem Description “看似随机,实则早已注定”——光羽度度熊有n个随机变量x1,x2,...,xnx1,x2,...,xnx_1,x_2,...,x_n。给定区间[l1,r1],...,[ln,rn][l1,r1],...,[ln,rn][l_1, r_1],...,[l_n, r_n],变量xixix_i的值会等概率成为区间[li,ri][li,ri][l_i,r_i]...原创 2018-08-21 12:55:34 · 1036 阅读 · 0 评论