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

对一组数据 请问AC的程序算得多少 谢谢!

Posted by whj1991 at 2010-09-13 12:03:05 on Problem 1882
10
4
5 1 2 13 17 19
6 1 2 7 13 17 29
7 1 3 7 11 13 17 29
10 1 2 4 8 16 32 64 12 25 51

我的答案是
541   :  1 2 4 8 16 32 64 12 25 51

但我的程序WA了

我提交了在网上找的程序 AC了  
它对这组数据的答案是  510   :  1 2 4 8 16 32 64 12 25 51

但很明显 511=64*7+12*1+51*1   采用了9张邮票 (总价值超过了510)
请AC的大牛为我解疑
谢谢!

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