摘要:
http://poj.org/problem?id=1659Havel 定理 贪心。。考虑要全面#include <stdio.h>#include <string.h>#include <algorithm>#include <queue>using std::sort;struct Node{ int pos, w; bool operator < (Node a) { return w >= a.w ; }}lake[25];int map[25][25];int main(){ int cas, i, j, n, a; boo 阅读全文