摘要: 这个= =最近刷的都是水题啊QAQ排除掉不可能的边然后就最小生成树就行了= =CODE:#include#include#include#includeusing namespace std;#define maxn 2010struct edges{int x,y,c;}edge[maxn*ma... 阅读全文
posted @ 2014-07-09 11:49 New_Godess 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 还是搜索~~可以看出随着D值的增大能到达的点越多,就2分d值+染色法遍历就行啦~~~CODE:#include#include#include#include#includeusing namespace std;#define maxn 510struct node {int x,y;}st;s... 阅读全文
posted @ 2014-07-09 11:48 New_Godess 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 水题一道却交了4次QAQ,真是蒟蒻QAQCODE:#include#include#include#include#includeusing namespace std;struct node{int x,y,t;}st,en;queue s;#define maxn 1010int a[maxn... 阅读全文
posted @ 2014-07-09 11:46 New_Godess 阅读(203) 评论(0) 推荐(0) 编辑