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的状态转移从网上看到通过dfs进行状态转移,d为当前列号,s1,s2分别为当前行和上一行状态 1. d = d + 1, s1 << 1 | 1, s2 << 1; 2. d = d + 2, s1 << 2 | 3, s2 << 2 | 3; 3. d = d + 1, s1 << 1, s2 << 1 | 1; 但不明白为何s2的状态转移是那样,高手能不能详细说明一下? Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator