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 |
新手AC這題有感1. greedy不行,cut cat cactut 或者 cat cut cactut 會出問題, 視乎比對次序,重點是greedy沒查找所有可能性,碰上字尾一樣的情況就不行 2. 留意當s1前i個字和s2前j個字能組成s3 前i+j字時, 如果s1和s2真的能組成s3, 那s1前i+1個字和s2前j個字 或者 s1前i個字和s2前j+1個字也必定能組成s3的前i+j+1個字... 很好的dp題..推薦推薦 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator