摘要: /* 最一般合一(mgu)算法实现 */ #include #include #include using namespace std; struct transform //一组置换 { string t_f1; string t_f2; }; //函数声明 bool same(const string f1,const string f2) ; transf... 阅读全文
posted @ 2016-11-22 08:43 PirateLHX 阅读(2665) 评论(0) 推荐(0)
摘要: #include #include #include using namespace std; int main() { stack s; stack b; string a; cin>>a; int flag=0; if(a[0]=='P'||a[0]=='Q'||a[0]=='R'||a[0]=='S'||a[0]=='T') couta[i]&&a[i]>'z')) ... 阅读全文
posted @ 2016-11-22 08:43 PirateLHX 阅读(151) 评论(0) 推荐(0)