PersonalCorpus 版 (精华区)

1026959  Big Guava ... 10340 Accepted
0:00.000 64 2002/08/17 13:49:26.449  

void main()
{
    char s[200000];
    int i,j,k;

    while (gets(s)!=NULL) {
        i=0; while (s[i]!=32) i++; while (s[i]==32) i++;
        j=0; k=strlen(s);
        while (s[j]!=32) {
            while ((i<k)&&(s[i]!=s[j])) i++;
            if (i==k) break; else { j++; i++; }
        }
        if (s[j]==32) printf("Yes\n"); else printf("No\n");
    }
}
[百宝箱] [返回首页] [上级目录] [根目录] [返回顶部] [刷新] [返回]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:2.114毫秒