![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
poj
Shirley_RL
Stay hungry Stay foolish
展开
-
pku_2943
集合运算,去掉重复的,如果某个集合能是多个集合UNion 后的结果,那么就删除该集合。求最多有几个这样的集合。开始的时候想错了,例如 2 1 2;2 1 3;2 2 3;这3种材料其实都不可以删除代码是别人那看的,so 不贴了原创 2013-09-11 15:53:50 · 532 阅读 · 0 评论 -
poj_1083
开始没有考虑这样的情况 1->3 4->5这种情况,因为过道是两边,正对面的会存在冲突。#include #include using namespace std;int f[1000];int main(){ int t,n;//freopen("1.txt","r",stdin); scanf("%d",&t); while(t--) { scanf原创 2013-09-13 15:36:39 · 653 阅读 · 0 评论 -
poj_2092
hash+sort#include#include using namespace std;struct myhash{ int id; int num;} myhash[10010];bool cmp(struct myhash a,struct myhash b){ if(a.num!=b.num) return a.num>b.num; retu原创 2013-09-13 16:31:24 · 937 阅读 · 0 评论