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

你的代码好长啊...

Posted by deathspeaker at 2009-02-26 16:33:20 on Problem 1936
In Reply To:真的有那么难吗??一次通过,字符串比较 Posted by:liuweni at 2007-08-26 15:35:15
char a[100001],b[100001];
void main(){
	int i,j;
	while(scanf("%s %s",a,b)+1){
		i=j=0;
		while(b[j])if(a[i]==b[j++])i++;
		if(a[i]==0)printf("Yes\n");
		else printf("No\n");
	}
}

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