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 level at 2007-02-01 22:11:40 on Problem 2413
		ai=ffind(sa);
		if(cmp(sa,a[ai])>0) ai++;
		bi=ffind(sb);
		if(cmp(sb,a[bi])<0) bi--;
		cout<<bi-ai+1<<endl;

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