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

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

Posted by liuyuquan100 at 2008-12-19 21:11:08 on Problem 1018
基本想法:对每个B,把它当成最小,只需在其他每个集合里面,找比B大,而且P最小的(B,P);如果有一个集合都比B大,则不存在此路。对每个B重复上述操作,之后对每种情况进行比较,找出最优的。
感触:一开始对所有B排序,时间922MS,去掉排序竟达1000ms(多按了一下submit,980多MS);

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