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 |
帮忙就错拉!!#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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator