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

解法:

Posted by foreverlin at 2009-07-15 10:16:46 on Problem 1432
//DP,给定一个字典和序列,问序列中有多少种单词组合的可能 
//首先先将单词转化成译码
//对于一组序列遍历一遍,对于dp[i],若发现此处有此前到达的路径,那么枚举每个单词,看是否能够组成一个新的,若能
//则dp[i+len]+=dp[i]把组合累加,最后只需要输出dp[lens]即可 

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