2011年4月18日

zoj1589Professor John

摘要: #include<string>#include<set>#include<iostream>#include<cstring>using namespace std;/*题意:根据已有的变量关系能否推出别的变量关系(条件中已给出的滤去,若推不出别的关系输出NONE)传递闭包*/int small[30][30],vis[30][30],hash[30][30];//vis[][]标记关系在输入中已给出,hash[][]表示关系已在DFS中得到 set <string> ans; void DFS(int x,int cet){ fo 阅读全文
posted @ 2011-04-18 23:14 4.5.6 阅读(177) 评论(0) 推荐(0) 编辑

zoj1068P,MTHBGWB

摘要: #include<iostream>#include<string>#include<cstring>#include<map>using namespace std;int key[100];string ans;map <char,int> m;map <char,string> c;map <string,char> d;void set(){ m['A']=2;m['B']=4,m['C']=4,m['D']=3,m['E' 阅读全文
posted @ 2011-04-18 22:02 4.5.6 阅读(212) 评论(0) 推荐(0) 编辑