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

这题qsort+binary足以,另外给大家一种我的输入方式

Posted by Eli_love at 2010-03-10 23:15:54 on Problem 2503
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:
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