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 zhiwei at 2007-02-10 13:51:57 on Problem 2590
In Reply To:跪求0MS的算法!!!!(附C代码 Posted by:20054953 at 2007-01-18 21:09:32
先列出每一步所能算到的最大值,如3步:1 2 1=4;4步:1 2 2 1=6;5步:1 2 3 2 1=9;
6步:1 2 3 3 2 1=12;7步:1 2 3 4 3 2 1=16;易知它们是按22334455..这样递增的.这些最大值中每隔两个就能开方,则把输入差值开方,再以开方值为支点,研究一下就能得出结果了:)

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