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 |
这题qsort+binary足以,另外给大家一种我的输入方式while(gets(ijk))//输入第一段的字典 { len=strlen(ijk); if(len==0) break; for(i=0;ijk[i]!=' ';i++) lang[n].En[i]=ijk[i]; lang[n].En[i]='\0'; for(j=0;j<len-i;j++) lang[n].Fo[j]=ijk[j+i+1]; n++; } //lang[n].En表示记录前半部分的English //lang[n].Fo表示记录后半部分的Foreign language //n来记录个数 下面的Foreign language这样输入 while(scanf("%s",word)!=EOF) Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator