HDU 1039 字符串处理
摘要:
小水题一道,关键是第二个要求中状态的转移 hehhe/** Author:loneylycatcher* problem:hdu 1039* Type:字符串处理*/#include <iostream>#include<string.h>#include<stdio.h>#include<cstdlib>using namespace std;string s;int main(){ setbuf(stdout,NULL); int i; while(cin>>s) { if(s.compare("end")== 阅读全文
posted @ 2011-08-01 14:46 lonelycatcher 阅读(299) 评论(0) 推荐(0) 编辑