http://acm.hdu.edu.cn/showproblem.php?pid=4340
Problem Description
Ant and Bob two army want to capture a country. The country is consist of N cities. To capture the city i, it takes Ant A...
分类:
其他好文 时间:
2015-02-05 18:31:47
阅读次数:
140
Painting StoragesTime Limit:2 Seconds Memory Limit:65536 KBThere is a straight highway withNstorages alongside it labeled by1,2,3,...,N. Bob asks you ...
分类:
其他好文 时间:
2015-02-05 00:38:04
阅读次数:
148
以下为memcached中关于使用的hash算法的一点记录memcached中默认使用的是Bob Jenkins的jenkins_hash算法以下4段代码均在memcached-1.4.22/hash.h以下为hash函数的声明,hashfunc_type的定义,以及hash_init函数的声明 /...
分类:
系统相关 时间:
2015-02-04 23:12:39
阅读次数:
491
DescriptionAlice、Bob和Cynthia总是为他们之间混乱的债务而烦恼,终于有一天,他们决定坐下来一起解决这个问题。不过,鉴别钞票的真伪是一件很麻烦的事情,于是他们决定要在清还债务的时候尽可能少的交换现金。比如说,Alice欠Bob 10元,而Cynthia和他俩互不相欠。现在假设A...
分类:
其他好文 时间:
2015-02-03 16:38:42
阅读次数:
489
题目链接:http://www.spoj.com/problems/COT3/Alice and Bob are playing a game on a tree of n nodes.Each node is either black or white initially.They take tu...
分类:
其他好文 时间:
2015-02-01 23:19:06
阅读次数:
986
hdu 5165 Funny Game
题目链接:
http://acm.hdu.edu.cn/showproblem.php?pid=5165
题意:
Bob有一个数组{a1,a2,...,an},数组中的每个元素都是介于1到n之间的整数。Bob还有m个函数,他们的定义域和值域都是集合{1,2,...,n}。Bob和Alice轮流开始玩游戏,Alice先开始。对于每一轮,玩家...
分类:
其他好文 时间:
2015-01-31 12:14:23
阅读次数:
141
# include
# include
# include
# include
# include
# include
# include
using namespace std;
struct node
{
int h;
int w;
};
struct node a[100010],b[100010];
bool cmp(node a1,node a2)
{
if(a1...
分类:
其他好文 时间:
2015-01-30 22:58:51
阅读次数:
334
A Game Between Alice and BobTime Limit:5 Seconds Memory Limit:262144 KBAlice and Bob play the following game. A series of numbers is written on the bl...
分类:
其他好文 时间:
2015-01-28 21:06:02
阅读次数:
334
http://codeforces.com/problemset/problem/29/C
Description
One day Bob got a letter in an envelope. Bob knows that when Berland's post officers send a letter directly from city «A» to city «B...
分类:
其他好文 时间:
2015-01-27 20:25:24
阅读次数:
178
题目链接:点击打开链接
Bob is a strategy game programming specialist. In his new city building game the gaming environment is as follows: a city is built up by areas, in which there are streets, trees, factor...
分类:
其他好文 时间:
2015-01-24 20:06:06
阅读次数:
160