码迷,mamicode.com
首页 >  
搜索关键字:alice and bob    ( 1671个结果
UVa 12585 Poker End Games
题意:Alice和Bob这对狗男女又开始玩游戏了!!!!一开始前者有a元,后者有b元,每次玩,每个人赢得概率是对半开的,令c为a,b中的最小值,那么每次玩,谁输了就给赢的人c元,问Alice赢的概率和游戏的盘数期望值! 思路:貌似会迭代!公式也不好推。。。发现概率是0.5  然后误差范围是1e-5, 那么只要到达一定深度以后概率就可以忽略不计了! #include #include ...
分类:其他好文   时间:2014-10-11 14:09:45    阅读次数:166
HDU 4122 Alice's mooncake shop
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
poj1463 Strategic game 树的最小点覆盖
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
2013 ACM/ICPC 长沙现场赛 A题 - Alice's Print Service (ZOJ 3726)
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
ZOJ - 3725 Painting Storages
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漏洞的分类
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
PlantUML——4.实例演示1
给自己发消息 @startuml Alice -> Alice : This is a signal to self.\nIt also demonstrates \nmultiline text. @enduml 各种参与者 ...
分类:其他好文   时间:2014-10-05 20:30:49    阅读次数:633
PlantUML——2.中文乱码及解决
关于中文 参见: http://plantuml.sourceforge.net/unicode.html 问题描述 第一步:创建demo03.txt描述文档: @startuml Alice -> Bob : 认证请求 Bob --> Alice: 认证请求响应 Alice -> Bob: 应用请...
分类:其他好文   时间:2014-10-05 20:20:28    阅读次数:1221
UVA 10779 (最大流)
题目链接:http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=33631题目大意:Bob有一些贴纸,他可以和别人交换,他可以把自己独有的贴纸拿出去,也可以把重复的贴纸拿出去(有时候把独有的贴纸而不是重复的贴纸拿出去能换到更多贴纸)。...
分类:其他好文   时间:2014-10-05 17:34:08    阅读次数:138
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!