有没有办法把平局也放进去??
所在版块:求学狮城 发贴时间:2008-12-04 11:19

用户信息
复制本帖HTML代码
高亮: 今天贴 X 昨天贴 X 前天贴 X 
请问:有没有办法把平局也放进去
CASE 1 A - B >= 2
Case 2 B - A >= 2
Case 3 A = B ---> 放回原先的循环

System.out.println((double) aWin * 100 / n + "%");

另外可否print bWin% ? draw?
.
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!

路人拾遗
 相关帖子 我要回复↙ ↗回到正文
有趣的网球输赢概率题 spinach   (168 bytes , 1096reads )
Solve the Discrete Time Markov Chain simon   (0 bytes , 479reads )
题目修改 spinach   (308 bytes , 291reads )
0.855967? hash   (119 bytes , 318reads )
应该是80%吧,一个小程序模拟进行10000000场比赛输出结果接近80% MetalGearSnake   (976 bytes , 411reads )
有没有办法把平局也放进去?? spinach   (186 bytes , 274reads )
每场比赛要有局数限制才会产生平局的情况吧? MetalGearSnake   (1321 bytes , 291reads )
if you know sth about stochastic, this is a stopping-time problem 1300cc   (102 bytes , 287reads )
试着写一般表达式,这样对吗? spinach   (79 bytes , 248reads )
what is the general formula for the stopping time? spinach   (214 bytes , 243reads )
yes. it's a typo in my first equation. should be -2 , not -1/2 1300cc   (15 bytes , 294reads )
it's in this way 1300cc   (67 bytes , 376reads )
for stopping-time problems, there are no "draw"? spinach   (0 bytes , 256reads )
no draw 1300cc   (192 bytes , 260reads )
我的答案跟大家一样4:1;可是好像不对 spinach   (521 bytes , 262reads )
如果不限制盘数的话,平局的概率为零 香陵居士   (0 bytes , 326reads )
考虑到状态稳定的时候 icky   (102 bytes , 291reads )
这个好 胡萝卜   (0 bytes , 243reads )
若不限制,甲80%,乙20%;若限制,自己算 冷色蓝天   (439 bytes , 294reads )
一场比赛多少盘?还是不限制盘数? 香陵居士   (0 bytes , 365reads )
不限盘数 spinach   (0 bytes , 269reads )
每胜一盘的[得]一分,另甲胜指甲胜整场比赛 spinach   (0 bytes , 212reads )