题意:用二分法找出数学期望。
策略,二分。
求数学期望有两种方法,一:求出每一个数的概率,再与数相乘,最后把所有的乘积相加就好了。
二:数学期望总是与平均数相等,所以可以当做求平均数。(简单方便)
代码:...
分类:
其他好文 时间:
2014-08-25 23:00:45
阅读次数:
466
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3798
Abs Problem
Time Limit: 2 Seconds Memory Limit: 65536 KB Special Judge
Alice and Bob is playing a game, and ...
分类:
其他好文 时间:
2014-08-25 21:16:24
阅读次数:
293
题目链接Tatyana is a big sports fan and she likes volleyball a lot! She writes down the final scores of the game after it has ended in her notebook.If you...
分类:
其他好文 时间:
2014-08-25 20:42:04
阅读次数:
248
Abs ProblemTime Limit: 2 Seconds Memory Limit: 65536 KB Special JudgeAlice and Bob is playing a game, and this time the game is all about the absolute...
分类:
其他好文 时间:
2014-08-25 16:56:44
阅读次数:
261
The Game of 31Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 592Accepted Submission(s): 273Proble...
分类:
其他好文 时间:
2014-08-25 14:37:24
阅读次数:
193
Little Hasan loves to play number games with his friends.One day they were playing a game where one of them will speak out a positive numberand the others have to tell the sum of its factors. The firs...
分类:
其他好文 时间:
2014-08-25 11:57:04
阅读次数:
235
Abs ProblemTime Limit: 2 Seconds Memory Limit: 65536 KB Special JudgeAlice and Bob is playing a game, and this time the game is all about the absolu.....
分类:
其他好文 时间:
2014-08-24 20:46:23
阅读次数:
203
Flip Game
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 30805
Accepted: 13409
Description
Flip game is played on a rectangular 4x4 field with two-sided...
分类:
其他好文 时间:
2014-08-24 18:07:32
阅读次数:
209
The Pilots Brothers' refrigerator
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 18641
Accepted: 7145
Special Judge
Description
The game “The Pilo...
分类:
其他好文 时间:
2014-08-24 18:06:42
阅读次数:
240
EXTENDED LIGHTS OUT
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 6628
Accepted: 4368
Description
In an extended version of the game Lights Out, is a p...
分类:
其他好文 时间:
2014-08-24 16:43:32
阅读次数:
198