| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
用此水题纪念我的第一个100踢#include <iostream>
#include <string>
using namespace std;
int main()
{
string s,t;
int i,j;
while(cin>>s>>t)
{
for(i=0,j=0;j<t.size();j++)
{
if(s.at(i)==t.at(j))i++;
if(i==s.size())break;
}
if(i==s.size())cout<<"Yes"<<endl;
else cout<<"No"<<endl;
}
return 0;
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator