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 <stdlib.h> #include <string.h> void main() { char s1[100000],s2[100000]; int len1,len2; int i,j; while(scanf("%s%s",&s1,&s2)==2) { len1=strlen(s1); len2=strlen(s2); j=0; for(i=0;i<len1 && j<len2;i++) { while(s1[i]!=s2[j++]) ; } if(i=len1 && j<=len2)//疑问在这里 ,这个程序AC了,但是if语句明显有问题啊,怎么还能AC呢????????????????????????????????????????????? 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