| ||||||||||
| 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 | |||||||||
你的代码好长啊...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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator