摘要: A string s of length ncan be encrypted by the following algorithm:iterate over all divisors of nin decreasing order (i.e. from n to 1)... 阅读全文
posted @ 2018-07-19 21:11 ~~zcy 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 模板请看上一篇博客Whuacmers use coins.They have coins of value A1,A2,A3...An Silverland dollar. One day Hibix opened purse and found there were... 阅读全文
posted @ 2018-07-19 15:28 ~~zcy 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 背包详解请看 https://blog.csdn.net/Septembre_/article/details/81111812一:01背包特点:每种物品只有一件,可以选择放或不放dp[i][j]=max(dp[i-1][j],dp[i-1][j-w[i]]+v... 阅读全文
posted @ 2018-07-19 11:35 ~~zcy 阅读(139) 评论(0) 推荐(0) 编辑