#include"iostream"
#include"string"
using namespace std;
int main()
{
//freopen("a.txt","r",stdin);
string s,t;
while(cin>>s>>t)
{
int ans=0;
int cnd=0;
for(auto p=t.begin();p!=t.end();)
{
if(*p==s[cnd])
{
p++;
cnd++;
}
else
p++;
}
if(cnd==(int)s.size())
cout<<"Yes\n";
else
cout<<"No\n";
}
return 0;
}
UVA10340
最新推荐文章于 2023-01-18 00:18:33 发布