摘要: 题目链接 题目 famous Berland's painter Kalevitch likes to shock the public. One of his last obsessions is chess. For more than a thousand years people have 阅读全文
posted @ 2022-01-13 21:53 zhangtingxi 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 题目链接 题目 There are several days left before the fiftieth birthday of a famous Berland's writer Berlbury. In this connection the local library decided t 阅读全文
posted @ 2022-01-13 16:47 zhangtingxi 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 题目链接 题目 原题来自:ZJOI 2010 给定两个正整数 \(a\) 和 \(b\),求在 [\(a,b\)] 中的所有整数中,每个数码 (\(digit\)) 各出现了多少次。 思路 首先在数位dp中,对于当前枚举的数,乘上后面的方案数。 那么后面的数如何多次计算呢? 我们发现这些数具有传递性 阅读全文
posted @ 2022-01-13 14:26 zhangtingxi 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 题目链接 题目 单身! 依然单身! 吉哥依然单身! DS 级码农吉哥依然单身! 所以,他平生最恨情人节,不管是 \(214\) 还是 \(77\),他都讨厌! 吉哥观察了 \(214\) 和 \(77\) 这两个数,发现: \(2+1+4=7\) \(7+7=7×2\) \(77=7 × 11\) 阅读全文
posted @ 2022-01-13 14:21 zhangtingxi 阅读(338) 评论(0) 推荐(0) 编辑