摘要: 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; ... 阅读全文
posted @ 2012-10-08 20:18 Yogurt Shen 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2012-10-08 20:06 Yogurt Shen 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2012-10-08 19:59 Yogurt Shen 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 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)... 阅读全文
posted @ 2012-10-08 19:45 Yogurt Shen 阅读(121) 评论(0) 推荐(0) 编辑