| ||||||||||
| 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 | |||||||||
hawk大叔给我改改错吧,谢谢!#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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator