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"; } }
相关文章推荐
- POJ 1936 All in All 字符串 水题
- poj 1936 All in All
- <poj-1936>All in All
- POJ1936——All in All
- POJ 1936--All in All
- UVA10340 POJ1936 ZOJ1970 All in All
- POJ 1936 All in All
- POJ 1936 All in All
- POJ 1936 All in All(串)
- All in All(poj 1936)
- [POJ1936 All in All]
- POJ 1936 All in All (模拟)
- POJ 1936 All in All 匹配, 水题 难度:0
- POJ 1936 All in ALL
- poj 1936 All in All
- POJ-1936-All in All
- poj 1936 All in All
- poj 1936 All in All 【串】
- poj 1936 All in All
- poj 1936 All in All