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

Re:险过,900多ms,刷不下来。。。

Posted by leonardWang at 2009-08-19 14:54:17 on Problem 1018
In Reply To:险过,900多ms,刷不下来。。。 Posted by:liuyuquan100 at 2008-12-19 21:11:08
> 基本想法:对每个B,把它当成最小,只需在其他每个集合里面,找比B大,而且P最小的(B,P);如果有一个集合都比B大,则不存在此路。对每个B重复上述操作,之后对每种情况进行比较,找出最优的。
> 感触:一开始对所有B排序,时间922MS,去掉排序竟达1000ms(多按了一下submit,980多MS);
看了这么多还是你讲的最清楚 2个变量还是应该固定住一个 然后考虑另一个

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