摘要: DescriptionAlice owns a construction company in the town of Norainia, famous for its unusually dry weather. In fact, it only rains a f... 阅读全文
posted @ 2015-04-08 15:46 Herumw 阅读(200) 评论(0) 推荐(0) 编辑
摘要: Ford Prefect got a job as a web developer for a small company that makes towels. His current work task is to create a search engine fo... 阅读全文
posted @ 2015-04-08 12:57 Herumw 阅读(128) 评论(0) 推荐(0) 编辑
摘要: Description按邻接矩阵的方法创建图,分别用深度优先和广度优先方法遍历图。Input输入的数据有多组对于每组测试数据第一行为图中点的个数n(0 #include#include#include using namespace std;int map[110][... 阅读全文
posted @ 2015-04-08 11:03 Herumw 阅读(372) 评论(0) 推荐(0) 编辑
摘要: DescriptionEducators are always coming up with new ways to teach math to students. In 2011, an educational software company, All Compu... 阅读全文
posted @ 2015-04-07 16:04 Herumw 阅读(97) 评论(0) 推荐(0) 编辑
摘要: DescriptionAmerican Carnival Makers Inc. (ACM) has a long history of designing rides and attractions. One of their more popular attrac... 阅读全文
posted @ 2015-04-06 21:39 Herumw 阅读(159) 评论(0) 推荐(0) 编辑
摘要: Problem Description人随着岁数的增长是越大越聪明还是越大越笨,这是一个值得全世界科学家思考的问题,同样的问题Eddy也一直在思考,因为他在很小的时候就知道亲和串如何判断了,但是发现,现在长大了却不知道怎么去判断亲和串了,于是他只好又再一次来请教聪明且... 阅读全文
posted @ 2015-04-04 16:11 Herumw 阅读(104) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionNetwork flow is a well-known difficult problem for ACMers. Given a graph, your task is to find out the maximum flow... 阅读全文
posted @ 2015-04-03 22:20 Herumw 阅读(96) 评论(0) 推荐(0) 编辑
摘要: DescriptionN (2 #define maxn 8005int a[maxn],c[maxn];struct node{ int len,l,r,sum;}b[4*maxn];void build(int l,int r,int i){ int mid; b... 阅读全文
posted @ 2015-04-02 12:58 Herumw 阅读(102) 评论(0) 推荐(0) 编辑
摘要: DescriptionYou have N integers, A1, A2, ... , AN. You need to deal with two kinds of operations. One type of operation is to add some ... 阅读全文
posted @ 2015-04-01 11:41 Herumw 阅读(129) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionIn the game of DotA, Pudge’s meat hook is actually the most horrible thing for most of the heroes. The hook is made... 阅读全文
posted @ 2015-03-30 19:50 Herumw 阅读(128) 评论(0) 推荐(0) 编辑