poj 1936(水题)
作者:互联网
#include<iostream> #include<cstdio> #include<cstring> using namespace std; char s[100005],t[100005]; int main(){ while(scanf("%s%s",s,t)==2){ int i,j,lens = strlen(s),lent = strlen(t); for(i=0,j=0;i<lens&&j<lent;){ if(s[i]==t[j]){ i++;j++; } else{ j++; } } if(i==lens) printf("Yes\n"); else printf("No\n"); } return 0; }
标签:std,main,水题,int,100005,poj,1936,include,strlen 来源: https://www.cnblogs.com/stevenzrx/p/15081161.html