码迷,mamicode.com
首页 >  
搜索关键字:bob    ( 1241个结果
ZOJ 3819 Average Score 水
水 Average Score Time Limit: 2 Seconds      Memory Limit: 65536 KB Bob is a freshman in Marjar University. He is clever and diligent. However, he is not good at math, especially in Mathemati...
分类:其他好文   时间:2014-10-15 00:07:49    阅读次数:238
[ACM] ZOJ 3819 Average Score (水题)
Average Score Time Limit: 2 Seconds      Memory Limit: 65536 KB Bob is a freshman in Marjar University. He is clever and diligent. However, he is not good at math, especially in Mathematical A...
分类:其他好文   时间:2014-10-14 21:48:09    阅读次数:147
HDU 5054 Alice and Bob
#include int main(){ int n,m,x,y; while(~scanf("%d%d%d%d",&n,&m,&x,&y)){ if(2*x==n&&2*y==m)puts("YES");else puts("NO"); }return 0;}
分类:其他好文   时间:2014-10-14 18:45:39    阅读次数:174
HDU 5055 Bob and math problem
#include int t,n,a[10];int main(){ while(~scanf("%d",&n)){ int flag=0; for(int i=0;i0)flag=1; if(flag==0){puts("-1");continue;...
分类:其他好文   时间:2014-10-14 18:05:35    阅读次数:144
老调重弹--面向对象设计原则--S.O.L.I.D设计原则
老调重弹系列,软件设计原则之Bob大叔的SOLID原则
分类:其他好文   时间:2014-10-12 23:29:28    阅读次数:194
ZOJ 3819 Average Score (精度处理)
题目链接:ZOJ 3819 Average Score 题意:给出A班和B班的学生成绩,如果bob(A班的)在B班的话,两个班级的平均分都会涨。求bob成绩可能的最大,最小值。 A班成绩平均值(不含BOB)>A班成绩平均值(含BOB) &&  B班成绩平均值(不含BOB) 求解两个不等式,注意精度 AC代码: #include int main() { int...
分类:其他好文   时间:2014-10-12 18:53:38    阅读次数:172
2014 牡丹江现场赛 A.Average Score(zoj 3819) 解题报告
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5373题目意思: 有两个class:A 和 B,Bob 在 Class A 里面。现在给出 Class A(n-1人) 和 Class B(m人) 所有人的分数,除了Bo...
分类:其他好文   时间:2014-10-12 18:24:58    阅读次数:204
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
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
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!