摘要:
http://poj.org/problem?id=1363 #include<cstdio>#include<stack>using namespace std;int a[1000];int main(void){ int n; while(scanf("%d",&n),n) { int x,t; stack<int> q; ... 阅读全文
摘要:
http://poj.org/problem?id=1731 #include<cstdio>#include<cstring>#include<algorithm>using namespace std;int main(void){ char str[202]; while(gets(str)) { int n=strlen(str); s... 阅读全文
摘要:
http://poj.org/problem?id=1256 #include<cstdio>#include<cstring>#include<cctype>#include<algorithm>using namespace std;char str[20];bool cmp(char a,char b){ if(tolower(a)==tolower(b)) r... 阅读全文
摘要:
http://poj.org/problem?id=2503 #include<iostream>#include<string>#include<map>using namespace std;map<string,string> rule;int main(void){ int cur,len; string s,s1,s2; while(getline(cin,s)... 阅读全文