posted @ 2017-04-28 11:13 蓝空 阅读(194) 评论(0) 推荐(0) 编辑
摘要:
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 +... 阅读全文
摘要:
G - B-number HDU - 3652 A wqb-number, or B-number for short, is a non-negative integer whose decimal form contains the sub- string "13" and ... 阅读全文
posted @ 2017-04-28 10:14 蓝空 阅读(97) 评论(0) 推荐(0) 编辑
摘要:
A balanced number is a non-negative integer that can be balanced if a pivot is placed at some digit. More specifically, imagine each digit as a bo... 阅读全文
posted @ 2017-04-28 09:37 蓝空 阅读(148) 评论(0) 推荐(0) 编辑
摘要:
The cows, as you know, have no fingers or thumbs and thus are unable to play Scissors, Paper, Stone' (also known as 'Rock, Paper, Scissor... 阅读全文
posted @ 2017-04-27 22:04 蓝空 阅读(193) 评论(0) 推荐(0) 编辑
摘要:
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 ... 阅读全文
posted @ 2017-04-27 21:30 蓝空 阅读(129) 评论(0) 推荐(0) 编辑
摘要:
不要62 HDU - 2089 杭州人称那些傻乎乎粘嗒嗒的人为62(音:laoer)。 杭州交通管理局经常会扩充一些的士车牌照,新近出来一个好消息,以后上牌照,不再含有不吉利的数字了,这样一来,就可以消除个别的士司机和乘客的心理障碍,更安全地服务大众。 不吉利的数字为所有... 阅读全文
posted @ 2017-04-27 19:54 蓝空 阅读(89) 评论(0) 推荐(0) 编辑
摘要:
数位动态规划是求解一个大区间[L, R]中间满足条件Q的所有数字的个数(或者和,或其他)的一种方法。它通过分析每一位上的数字,一般用 dp[len][digit][...] 来表示状态“len位长的数字,最高位数字为digit所具有的xx特性”,利用记忆化搜索保存中间结果,从而加快求解速度。 ... 阅读全文
posted @ 2017-04-27 16:22 蓝空 阅读(228) 评论(0) 推荐(0) 编辑
摘要:
Volodya is an odd boy and his taste is strange as well. It seems to him that a positive integer number is beautiful if and only if it is divisib... 阅读全文
posted @ 2017-04-27 15:47 蓝空 阅读(196) 评论(0) 推荐(0) 编辑
摘要:
XHXJ's LIS HDU - 4352 #define xhxj (Xin Hang senior sister(学姐)) If you do not know xhxj, then carefully reading the entire description is v... 阅读全文
posted @ 2017-04-27 12:23 蓝空 阅读(156) 评论(0) 推荐(0) 编辑