您的位置:首页 > 其它

poj 1936 All in All 水题

2012-06-25 18:40 423 查看
#include <iostream>
using namespace std;
const int MAX = 100001;
int main(){
char s[MAX], t[MAX], *ps, *pt;
while (cin >> s >> t){
ps = s;
pt = t;
while (*pt){
if (*ps == *pt) ++ps;
if ('\0' == *ps){
cout << "Yes\n";
break;
}
++pt;
}
if (*ps) cout << "No\n";
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  include