摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2089 题意 求一个区间内,不出现4和连续的62的数的个数。 分析 可以暴力打表。也可以数位DP。 设: dp[i][0],表示长度为i,不存在不吉利数字dp[i][1],表示长度为i,不存在不吉利数字, 阅读全文
posted @ 2018-04-28 23:09 litos 阅读(201) 评论(0) 推荐(0) 编辑
摘要: D. Beautiful numbers time limit per test 4 seconds memory limit per test 256 megabytes input standard input output standard output D. Beautiful number 阅读全文
posted @ 2018-04-28 21:49 litos 阅读(203) 评论(0) 推荐(0) 编辑