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 kings_zqz at 2008-05-09 10:07:37 on Problem 2479
In Reply To:我的想法清晰,但超时了,哪位大牛帮我看看,不好意思贴出代码 Posted by:ccnu_xieshuo at 2008-04-30 22:01:10
你的不是动态规划吧,而且getmax这个函数写到外面会加大时间的开支,因为一直连续的调用,
建议把getmax的判断直接写到main里面去,循环用一个就行

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