题目链接Alice and BobTime Limit:6000/3000MS (Java/Others)Memory Limit:256000/128000KB (Java/Others)SubmitStatisticNext ProblemProblem DescriptionHere is A...
分类:
其他好文 时间:
2014-09-05 15:59:11
阅读次数:
214
有时候像这种题,没有明显的思路,感觉像规律题。那么先暴力打表,再找规律就很快了。
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3798
先上我的暴力打表,这种肯定是TLE的,只用它发现规律就好了。
#include
#include
#include
#define INF 0x3f3f3f3f
#def...
分类:
其他好文 时间:
2014-09-03 22:48:57
阅读次数:
287
题目相关: 3798相关链接: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5330 Alice和Bob玩数字游戏, 这次Alice和Bob玩的是绝对值游戏. (Alice和Bob以前只玩博弈类游戏, 现在开始玩数列了...
分类:
其他好文 时间:
2014-09-03 14:54:16
阅读次数:
224
http://202.197.224.59/OnlineJudge2/index.php/Problem/read/id/1185
判断 x3+y3 = c 是否存在正整数解,2≤c≤109
首先把给定范围内的所有情况打表用数组保存,然后直接二分查找c即可。
#include
#include
using namespace std;
int cnt,a[1010000];
bool fin...
分类:
其他好文 时间:
2014-09-02 15:52:14
阅读次数:
248
原文链接地址:http://www.52nlp.cn/hmm-concrete-example-on-wiki/ Alice 和Bob是好朋友,但是他们离得比较远,每天都是通过电话了解对方那天作了什么.Bob仅仅对三种活动感兴趣:公园散步,购物以及清理房间.他选择做什么事情只凭当天天气.Alice....
分类:
其他好文 时间:
2014-09-02 13:52:54
阅读次数:
279
【题意】:Alice有n部电影要拍,规定爱丽丝每部电影在每个礼拜只有固定的几天可以拍电影,只可以拍前面w个礼拜,并且这部电影要拍d天,问爱丽丝能不能拍完所有的电影【建图】:源点与每部电影连边,容量为天数,每部电影与可以拍该电影的那些天数连边,容量为1,再所有的天数与汇点连边容量为1。 要注意天数和汇...
分类:
其他好文 时间:
2014-08-31 16:59:21
阅读次数:
175
Color a Tree
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 1068 Accepted Submission(s): 349
Problem Description
Bob is very in...
分类:
其他好文 时间:
2014-08-30 17:49:09
阅读次数:
141
一、搭建vnc服务器的过程1.查看tigervnc是否安装。[root@localhost~]#rpm-qa|greptigervnctigervnc-1.1.0-5.el6_4.1.x86_64tigervnc-server-1.1.0-5.el6_4.1.x86_642.编辑vncservers配置文件。[root@localhost~]#vim/etc/sysconfig/vncserversVNCSERVERS="1:root2:bob"//其中的..
分类:
其他好文 时间:
2014-08-30 02:25:59
阅读次数:
349
Alice and Bob
Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 2645 Accepted Submission(s): 851
Problem Description
Alice and Bo...
分类:
其他好文 时间:
2014-08-28 17:02:38
阅读次数:
275
Description
Alice and Bob are very smart guys and they like to play all kinds of games in their spare time. the most amazing thing is that they always find the best strategy, and that's why they fe...
分类:
其他好文 时间:
2014-08-28 16:55:48
阅读次数:
303