You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
399 B
C++
23 lines
399 B
C++
#include <iostream>
|
|
#include <string>
|
|
using namespace std;
|
|
|
|
int main()
|
|
{
|
|
int n,k=0;
|
|
cin>>n;
|
|
string s="<3",t;
|
|
for(int i=0; i<n; i++)
|
|
cin>>t,s+=t+"<3";
|
|
cin>>t;
|
|
for(size_t i=0; i<t.size(); i++)
|
|
{
|
|
if(t[i]==s[k])
|
|
k++;
|
|
if(k>=s.size())
|
|
return cout<<"yes"<<endl,0;
|
|
}
|
|
cout<<"no"<<endl;
|
|
return 0;
|
|
}
|