摘要: 题目连接:https://hihocoder.com/problemset/problem/1095 应该是之前在哪看的代码。不像是我写的。。 阅读全文
posted @ 2017-04-21 23:32 yijiull 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 题目连接:https://vjudge.net/problem/UVALive-3942 trie树 dp[i]=sum(dp[i+len(x)]%mod; dp[i]表示从字符i开始的字符串的分解方案方案数,x是s[i……L]的前缀 lrj: 1 // LA3942 Remember the Wo 阅读全文
posted @ 2017-04-21 19:17 yijiull 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 题目连接:https://hihocoder.com/problemset/problem/1014 1 #include<cstdio> 2 #include<cstring> 3 const int maxn=110; 4 struct trie 5 { 6 char a; 7 int cnt; 阅读全文
posted @ 2017-04-21 08:02 yijiull 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 题目连接:https://vjudge.net/problem/UVALive-4329 lowbit.. 阅读全文
posted @ 2017-04-21 00:38 yijiull 阅读(126) 评论(0) 推荐(0) 编辑