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

一点证明

Posted by backstreetlili at 2008-07-17 20:10:09 on Problem 1032
In Reply To:原来是有规律的阿^_^ Posted by:noskill at 2005-03-27 10:12:23
1<=a[i+1]-a[i]<=2
题目要求不同大小,所以有 >=1
如果a[i+1]==a[i]+3,那么 他们的积可以表示为 a[i]^2+3*a[i],但实际上还有一种更好的分法,即
a[i]+1,a[i]+2,此时积为 a[i]^2+3*a[i]+2 > a[i]^2+3*a[i]

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