http://acm.hdu.edu.cn/showproblem.php?pid=4268
Problem Description
Alice and Bob's game never ends. Today, they introduce a new game. In this game, both of them have N different rectangular ca...
分类:
其他好文 时间:
2015-03-21 11:17:51
阅读次数:
150
Description
Alice和Bob现在要乘飞机旅行,他们选择了一家相对便宜的航空公司。该航空公司一共在n个城市设有业务,设这些城市分别标记为0到n-1,一共有m种航线,每种航线连接两个城市,并且航线有一定的价格。Alice和Bob现在要从一个城市沿着航线到达另一个城市,途中可以进行转机。航空公司对他们这次旅行也推出优惠,他们可以免费在最多k种航线上搭乘飞机。那么Alice和Bob这次出行最...
分类:
其他好文 时间:
2015-03-17 20:14:24
阅读次数:
123
Alice和Bob有n个长方形,有长度和宽度,一个矩形可以覆盖另一个矩形的条件的是,本身长度大于等于另一个矩形,且宽度大于等于另一个矩形,矩形不可旋转,问你Alice最多能覆盖Bob的几个矩形? 1 /* 2 HDU 4268 3 贪心+STL 4 */ 5 6 #include 7 #inclu....
分类:
其他好文 时间:
2015-03-17 12:04:44
阅读次数:
137
Problem Description
One day, Alice and Bob felt bored again, Bob knows Alice is a girl who loves math and is just learning something about matrix, so he decided to make a crazy problem for her.Bob has...
分类:
其他好文 时间:
2015-03-16 19:22:16
阅读次数:
102
题意:一个袋子里面有黑球和白球,alice 和 bob 轮流取 ,Alice先取,谁最先取到白球谁获胜,当bob取出一个球以后,袋子里面会随机消失一个球。问Alice获胜的几率。解题思路:二维dp,dp[i][j]表示取到 第i次 还 剩j 个白球的几率,dp时候讨论三种情况就行。解题代码: 1 /...
分类:
其他好文 时间:
2015-03-11 12:24:24
阅读次数:
120
Alice lives in the country where people like to make friends. The friendship is bidirectional and if any two person have no less than
k friends in common, they will become friends in several days. Cu...
分类:
其他好文 时间:
2015-03-09 09:24:37
阅读次数:
199
Play Game
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65535/65535 K (Java/Others)
Total Submission(s): 822 Accepted Submission(s): 474
Problem Description
Alice and Bob are pl...
分类:
编程语言 时间:
2015-03-08 11:50:46
阅读次数:
180
B - Alice and Bob Time Limit:5000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uDescription Alice and Bob's game never ends. Today, they introd....
分类:
其他好文 时间:
2015-03-07 15:38:57
阅读次数:
99
H - Treasure Hunt IV Time Limit:2000MS Memory Limit:65536KB 64bit IO Format:%lld & %lluDescription Alice is exploring the wonderland, suddenly she f.....
分类:
其他好文 时间:
2015-03-07 15:22:29
阅读次数:
125
状态压缩+逆向BFS。方向数组就是任意相邻的两点(初始化时减1),每个顶点均有4个相邻点。因此,共有16*4/2=32个方向。按序排列即可找到。 1 /* 3220 */ 2 #include 3 #include 4 #include 5 #include 6 #include 7 us...
分类:
其他好文 时间:
2015-03-02 16:48:14
阅读次数:
151