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

hawk大叔给我改改错吧,谢谢!

Posted by wc at 2005-01-11 19:55:22 on Problem 1936
#include<stdio.h>
#include<string.h>
void main()
{
	int i=0,j;
	char s[200],t[400];
	scanf("%s%s",s,t);
	for(j=0;t[j]!='\0';j++)
		if(s[i]==t[j])
			i++;
		if(i<strlen(s))
			printf("No\n");
		else
			printf("Yes\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