| ||||||||||
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 |
暴力的过法O(n * n)这个题目如果想过的话很容易了 , 估计大家都想到了 , 正反求一次最长公共子序列 , 得字符串和它反串的最长公共子序列为 k , 要求添加的个数用n - k就是了! 由于int 5000*5000超了内存 , 所以可用short 搞定,哈哈!(不推荐使用) Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator