摘要: #include <cstdio>#include <cstring>#include <cstdlib>#include <algorithm>//bool cmp()int next[5000];int f[5000], t[5000];int r[5000], w[5000];int cmp(const void *p1, const void *p2){ return w[*(int*)p1] - w[*(int*)p2];}int find(int x){ return x == next[x] ? x : find(next[x]); 阅读全文
posted @ 2013-04-11 20:52 尔滨之夏 阅读(204) 评论(0) 推荐(0) 编辑