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,用12000多ms水过了

Posted by fullvsvs at 2010-01-31 20:38:43 on Problem 1038
想到三进制麻烦,用二进制,开两个数组记录state1[LARGE][LARGE],state2[LARGE][LARGE]轮流记录状态,#define LARGE (1<<10);这样就不会MLE了,就是速度慢,12000多ms.

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