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

本以为会超时,结果跑了219ms,happy~~~

Posted by 136930775 at 2012-09-29 10:10:46 on Problem 1185
dfs求出每一行的状态,最多一行的状态是60中,算不出的可以用10个p跑一下看看~
dp[i][j][k] = dp[i-1][k][t] + rowcount[i][j]
dp[i][j][k] 表示第i行选择状态为j, i-1行为k状态
rowcount[i][j] 表示 第i行选择j状态时,此行炮兵的个数

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