Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
用二进制,记录前两行的状态,进行DP,用12000多ms水过了想到三进制麻烦,用二进制,开两个数组记录state1[LARGE][LARGE],state2[LARGE][LARGE]轮流记录状态,#define LARGE (1<<10);这样就不会MLE了,就是速度慢,12000多ms. Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator