题意:Alice和Bob这对狗男女又开始玩游戏了!!!!一开始前者有a元,后者有b元,每次玩,每个人赢得概率是对半开的,令c为a,b中的最小值,那么每次玩,谁输了就给赢的人c元,问Alice赢的概率和游戏的盘数期望值!
思路:貌似会迭代!公式也不好推。。。发现概率是0.5 然后误差范围是1e-5, 那么只要到达一定深度以后概率就可以忽略不计了!
#include
#include ...
分类:
其他好文 时间:
2014-10-11 14:09:45
阅读次数:
166
Alice's mooncake shopTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2859Accepted Submission(s): 7...
分类:
其他好文 时间:
2014-10-11 03:05:15
阅读次数:
332
http://poj.org/problem?id=1463
Strategic game
Time Limit: 2000MS
Memory Limit: 10000K
Total Submissions: 6413
Accepted: 2973
Description
Bob enjoys playing com...
分类:
其他好文 时间:
2014-10-10 13:20:54
阅读次数:
201
Alice's Print ServiceTime Limit:2 Seconds Memory Limit:65536 KBAlice is providing print service, while the pricing doesn't seem to be reasonable, so p...
分类:
其他好文 时间:
2014-10-09 22:55:28
阅读次数:
163
Description
There is a straight highway with N storages alongside it labeled by 1,2,3,...,N. Bob asks you to paint all storages with two colors: red and blue. Each storage will be painted with exac...
分类:
其他好文 时间:
2014-10-09 17:15:48
阅读次数:
193
XSS漏洞依照攻击利用手法的不同,有下面三种类型:类型A,本地利用漏洞,这样的漏洞存在于页面中client脚本自身。其攻击步骤例如以下所看到的:Alice给Bob发送一个恶意构造了Web的URL。Bob点击并查看了这个URL。恶意页面中的JavaScript打开一个具有漏洞的HTML页面并将其安装在...
分类:
其他好文 时间:
2014-10-08 15:55:35
阅读次数:
1110
最大流
POJ 1273 Drainage Ditches
POJ 1274 The Perfect Stall (二分图匹配)
POJ 1698 Alice's Chance(构图)
POJ 1459 Power Network(构图)
POJ 2112 Optimal Milking (二分)
POJ 2455 Secret Milking Machine (二分)
POJ 31...
分类:
其他好文 时间:
2014-10-07 10:03:43
阅读次数:
486
给自己发消息 @startuml Alice -> Alice : This is a signal to self.\nIt also demonstrates \nmultiline text. @enduml 各种参与者 ...
分类:
其他好文 时间:
2014-10-05 20:30:49
阅读次数:
633
关于中文 参见: http://plantuml.sourceforge.net/unicode.html 问题描述 第一步:创建demo03.txt描述文档: @startuml Alice -> Bob : 认证请求
Bob --> Alice: 认证请求响应 Alice -> Bob: 应用请...
分类:
其他好文 时间:
2014-10-05 20:20:28
阅读次数:
1221
题目链接:http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=33631题目大意:Bob有一些贴纸,他可以和别人交换,他可以把自己独有的贴纸拿出去,也可以把重复的贴纸拿出去(有时候把独有的贴纸而不是重复的贴纸拿出去能换到更多贴纸)。...
分类:
其他好文 时间:
2014-10-05 17:34:08
阅读次数:
138