题目链接:Codeforces 490F Treeland Tour
类似于nlogn的递增上升子序列算法。
#include
#include
#include
#include
using namespace std;
const int maxn = 6005;
const int inf = 0x3f3f3f3f;
int N, R[maxn], D[maxn], ans...
分类:
其他好文 时间:
2015-04-16 19:57:43
阅读次数:
129
题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=1198题目大意: 有一大块土地需要浇水,这块土地由很多的小块土地(有十一种)组成,小块土地上有水沟,问至少需要建几个井,才能灌溉这一大片土地?11种土地,编号从A--K,解题思路: 这个题目可以用...
分类:
其他好文 时间:
2015-04-15 19:06:12
阅读次数:
123
3018: [Usaco2012 Nov]Distant PasturesTime Limit:1 SecMemory Limit:128 MBSubmit:43Solved:20[Submit][Status][Discuss]DescriptionFarmer John's farm is ma...
分类:
其他好文 时间:
2015-04-15 16:31:53
阅读次数:
179
这题真是被弄的欲仙欲死啊,开始写的代码死活的a不掉,也不知道哪里错了,先附上,求大牛指点啊.....
#include
#include
#include
using namespace std;
int n,m;
int point[100+5];
int re;
int ree[105];
int l;
struct stu
{
int a,b;
};
stu mapp[100000+5...
分类:
其他好文 时间:
2015-04-12 09:13:04
阅读次数:
116
POJ - 3255
Roadblocks
Time Limit: 2000MS Memory Limit: 65536KB 64bit IO Format: %I64d & %I64u
Submit Status
Description
Bessie has moved to a small farm and sometimes enjoys returning to vi...
分类:
数据库 时间:
2015-04-11 14:51:32
阅读次数:
208
小成靠勤奋 大成靠顺势而为 尽管雷军和他的小米一直非常火爆,尽管陈小包同学一直跟我讲雷军和他是校友,但是对雷军一直知之甚少,也无任何兴趣想要了解他。在我印象中,他长相非常“farm”,带着一口浓重的湖北口音,总给人一种很挫很挫、很屌丝很屌丝的感觉。谈吐举止上,没有一般企业家的那种力拔山兮气盖...
分类:
移动开发 时间:
2015-04-08 23:11:15
阅读次数:
316
Benny has a spacious farm land to irrigate. The farm land is a rectangle, and is divided into a lot of samll squares. Water pipes are placed in these ...
分类:
其他好文 时间:
2015-04-05 06:22:39
阅读次数:
143
SharePoint 2013 Farm最大支持20个WebApplication.这个限制和Application Pool的限制无关,是对于整个Farm来讲的。微软建议把Web Application的数目控制的越小越好。如果想要多个不同名字的site,可以用创建host named 网站集来代替添加新的web application。...
分类:
移动开发 时间:
2015-04-02 15:08:23
阅读次数:
136
网络流/最大流 愚人节快乐XD 这题是给一个混合图(既有有向边又有无向边),让你判断是否有欧拉回路…… 我们知道如果一个【连通】图中每个节点都满足【入度=出度】那么就一定有欧拉回路…… 那么每条边都可以贡献一个出度出来,对于一条边u->v: 连S->edge cap=1; 如果是...
分类:
其他好文 时间:
2015-04-02 01:01:43
阅读次数:
257