2011年8月23日

FOJ 1887 景区摊位安排问题

摘要: http://acm.fzu.edu.cn/problem.php?pid=1887按照题目要求先求出每个联通分支,然后在每个联通分支里面按照单位花费,从小到大排序,贪心一下就行了。#include <iostream>#include <cstdio>#include <string.h>#include <cmath>#include <algorithm>#include <vector>#include <queue>using namespace std;const int maxn = 105;st 阅读全文

posted @ 2011-08-23 18:26 lwbaptx 阅读(240) 评论(0) 推荐(0) 编辑

导航