Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

汗ing--Compile Error--有谁能帮帮忙啊--郁闷ing

Posted by ker at 2005-06-07 08:42:48 on Problem 1936
#include <stdio.h>
#include <conio.h>
int main()
{
    long i,k;
    char c,a[100001];
    do
    {
        i=0;
        if ((c=getchar())==EOF) break;
        do a[++i]=c; while ((c=getchar())!=' ');
        k=1;
        while ((c=getchar())!='\n')
            if (c==a[k]) { k++;if (k==i+1) break; }
        while (c!='\n') c=getchar();
        if (k==i+1) printf("Yes\n");
        else printf("No\n");
    }while (1);
    return 0;
}

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator