Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

用此水题纪念我的第一个100踢

Posted by qqgyp at 2011-05-22 00:47:25 on Problem 1936
#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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator