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:我也在想这个问题

Posted by sgzxy at 2008-06-14 16:03:30 on Problem 1011
In Reply To:Re:我也在想这个问题 Posted by:earl808 at 2008-05-03 18:04:59
不是吧……比如这组测试数据:
9
15 3 2 11 4 1 8 8 8
答案是:
第1 of 3根木棍:
15+3+2=20
第2 of 3根木棍:
11+8+1=20
第3 of 3根木棍:
8+8+4=20
第1组测试数据结果:20


你按降序排了:15 11 8 8 8 4 3 2 1
那么从左往右搜索,会先找出15+4+1=20,这样后面的测试就会失败。

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