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

DP TLE了~~

Posted by zyl072 at 2008-07-29 10:10:38 on Problem 3677
用DP做的,TLE了~~
我的做法是:每个R[i] 求出他的所有可能的组合(预处理先求完),假设总共有tot[i]个状态,
best[i][j] 表示 R[i] 使用第 j 个状态的最优解。进行DP,还是TLE了~郁闷ing

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