A:
题目链接:点击打开链接
Alice's present
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
int n, m;
int a[501000];
map mp;
int main() {
while (scanf("%...
分类:
其他好文 时间:
2015-02-27 17:12:25
阅读次数:
196
题目大意有些长度不同的巧克力棒排成一行,A从左往右吃,B从右往左吃。两人吃的速度相同,不允许暂停,不允许手中的还没吃完就吃下一个,当两个人手中的同时吃完并且下一个要吃的是相同的一个时这个巧克力棒归A吃。问他们最终都吃了几个。解题思路两个指针分别从左到右和从右到左。按照题目要求操作即可。...
分类:
其他好文 时间:
2015-02-20 09:43:16
阅读次数:
134
题目链接:HDU:http://acm.hdu.edu.cn/showproblem.php?pid=4791ZJU:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5072Problem DescriptionAlice is ...
分类:
其他好文 时间:
2015-02-15 10:40:22
阅读次数:
172
A New Stone Game
Time Limit: 1000MS
Memory Limit: 30000K
Total Submissions: 5028
Accepted: 2753
Description
Alice and Bob decide to play a new stone game.At the begin...
分类:
其他好文 时间:
2015-02-14 13:51:28
阅读次数:
178
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 -Alice's presentTime Limit:5000MSMemory Limit:65536KB64bit IO Format:%lld & %lluSubmitStatusPracticeZOJ 3633Appoint description:DescriptionAs a doll...
分类:
其他好文 时间:
2015-01-30 17:07:27
阅读次数:
141
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