数位dp
文章平均质量分 54
zufe_cst
这个作者很懒,什么都没留下…
展开
-
(数位dp)吉哥系列故事――恨7不成妻
吉哥系列故事――恨7不成妻 单身! 依然单身! 吉哥依然单身! DS级码农吉哥依然单身! 所以,他生平最恨情人节,不管是214还是77,他都讨厌! 吉哥观察了214和77这两个数,发现: 2+1+4=7 7+7=7*2 77=7*11 最终,他发现原来这一切归根到底都是因为和7有关!所以,他现在甚至讨厌一切和7有...原创 2018-09-15 18:10:35 · 254 阅读 · 0 评论 -
(数位dp)Bomb 模板题
The counter-terrorists found a time bomb in the dust. But this time the terrorists improve on the time bomb. The number sequence of the time bomb counts from 1 to N. If the current number sequence inc...原创 2018-09-15 18:13:28 · 187 阅读 · 0 评论 -
(数位dp)Round Numbers
The cows, as you know, have no fingers or thumbs and thus are unable to play Scissors, Paper, Stone’ (also known as ‘Rock, Paper, Scissors’, ‘Ro, Sham, Bo’, and a host of other names) in order to make...原创 2018-09-15 18:14:53 · 167 阅读 · 0 评论 -
(数位dp)B-number
A wqb-number, or B-number for short, is a non-negative integer whose decimal form contains the sub- string “13” and can be divided by 13. For example, 130 and 2613 are wqb-numbers, but 143 and 2639 ar...原创 2018-09-15 18:16:48 · 161 阅读 · 0 评论 -
(数位dp)F(x)
For a decimal number x with n digits (A nA n-1A n-2 … A 2A 1), we define its weight as F(x) = A n * 2 n-1 + A n-1 * 2 n-2 + … + A 2 * 2 + A 1 * 1. Now you are given two numbers A and B, please calcula...原创 2018-09-15 18:18:19 · 215 阅读 · 0 评论 -
(数位DP) HDU 2089 不要62
杭州人称那些傻乎乎粘嗒嗒的人为62(音:laoer)。 杭州交通管理局经常会扩充一些的士车牌照,新近出来一个好消息,以后上牌照,不再含有不吉利的数字了,这样一来,就可以消除个别的士司机和乘客的心理障碍,更安全地服务大众。 不吉利的数字为所有含有4或62的号码。例如: 62315 73418 88914 都属于不吉利号码。但是,61152虽然含有6和2,但不是62连号,所以不属于不吉...原创 2018-09-13 17:10:17 · 241 阅读 · 0 评论