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

新手AC這題有感

Posted by ytlau9 at 2010-07-15 05:13:51 on Problem 2192
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:
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