2018年3月6日

LA 3942 Remember the Word

摘要: (Remember the Word ,LA 3942) 题目来源:https://vjudge.net/problem/UVALive-3942 题意:给定一个字符串S以及n个单词,字符用这n个单词进行拆分,输出拆分的方案数。 思路:dp+字典树 可以先将这n个单词存储于字典树中,并记dp[i]: 阅读全文

posted @ 2018-03-06 20:29 ZefengYao 阅读(129) 评论(0) 推荐(0)

pat 甲级 Cars on Campus (30)

摘要: Cars on Campus (30) Cars on Campus (30) 时间限制 1000 ms 内存限制 65536 KB 代码长度限制 100 KB 判断程序 Standard 题目描述 Zhejiang University has 6 campuses and a lot of ga 阅读全文

posted @ 2018-03-06 15:44 ZefengYao 阅读(177) 评论(0) 推荐(0)

导航