Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
直接输出就行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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator