水题一只,果断切掉。。
#include <iostream>
using namespace std;
int main()
{
char s1[110000],s2[110000];
int t1,t2;
while (cin>>s1>>s2)
{
t1=0;
t2=0;
while (s2[t2])
{
if (s1[t1] == s2[t2])
t1++;
t2++;
}
if (s1[t1])
cout<<"No"<<endl;
else
cout<<"Yes"<<endl;
}
}