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 shi_mj at 2008-08-04 15:25:57 on Problem 1134
In Reply To:经过程序跟踪发现这题有个规律! Posted by:goalboy at 2006-03-15 18:20:52
>     三个方向上的构成只可能是以下这一种可能性:一个方向上三个数分别乘以5(=5),6(=3+3),8(=4+4);另外两个方向上三个数分别乘以5(=5),7(=3+4),7(=3+4)。
>     所以只要对三个方向分别的三个数进行排序,然后根据上述规律,就可以在30行代码内AC此题!


弱弱的问下。。为啥不能三个方向全部分别乘以8 6 5 呢? 这样结果更大啊?

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