标签:
#include <cstdio> #include <cstring> char s[100005],t[100005]; int main() { int yes, n = 0; while(scanf("%s%s",s,t)==2) { yes = 1; n = 0; for(int j = 0, i = 0; s[i] && t[j]; j++) { if(s[i] == t[j]) { i ++; n = i; } } if(s[n]) yes = 0; if(yes) printf("Yes\n"); else printf("No\n"); } return 0; }
标签:
原文地址:http://www.cnblogs.com/ekinzhang/p/4306210.html