| ||||||||||
| 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 | |||||||||
问一下 我在哪里能看到下面的东西啊???有源代码和时间等信息的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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator