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 xjj59307 at 2008-11-15 13:30:38 on Problem 1775 and last updated at 2008-11-15 13:38:27
In Reply To:你的算法真的很好,我改动了一下通过了,下面是代码 Posted by:jiangpeng at 2007-10-23 18:54:56
这种算法是错误的,只不过这里数据规模小碰巧对了
for example
数据是{2,5,6,8},n=15
15=2+5+8 是成立的
但用你这种算法15-8=7
7-6=1
输出的是NO

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