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 djj2007 at 2008-03-21 22:02:32
Problem Id:1936
Memory:216K  Time:0MS
Language:C++  Result:Accepted

#include <stdio.h>
#include <string.h>

char s[100000],t[100000];

void main()
{
	int i,j;
	int len1,len2;

	while(scanf("%s%s",&s,&t)==2)
	{
		len1=strlen(s);
		len2=strlen(t);


		for(i=0,j=0;j<len1 && i<len2;j++)
		{
			while(s[j]!=t[i]&&i<len2)i++;
			i++;
		}
		if(j==len1&&i<=len2)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