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

帮忙就错拉!!

Posted by 421389094 at 2010-08-04 13:50:53 on Problem 1750
#include<stdio.h>
char a[10];
char b[10];
int main()
{
int i,j,k=1,n=1;
scanf("%s",a);
printf("%s\n",a);
scanf("%s",b);
do
{
 if(a[0]!=b[0])k=0;
for(i=0;i<k;)
{if(a[i]==b[i])
{printf(" ");i++;}
else break;}
printf("%s\n",b);
k++;
for(j=0;j<10;j++)
a[j]=b[j];
scanf("%s",b);n++;
}while(n<=100000);
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