#include <stdio.h>
int main()
{
int i,j;
char s1[101],s2[101];
scanf("%s%s",s1,s2);
for(i=0;i<101;i++)
{
for(j=0;j<101;j++)
{
if(s2[j]=='\0' || s2[j]!=s1[j+i]) break;
}
if(s2[j]=='\0')
{
printf("%d\n",i+1);
break;
}
}
return 0;
}
CODE[VS] 1204
最新推荐文章于 2021-05-08 12:14:21 发布