动态规划之数位dp
wanghandou
我是个爱学习的孩子
展开
-
F(x)
F(x)Time Limit: 1000/500 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5055 Accepted Submission(s): 1880Problem DescriptionFor a decimal number x wit原创 2017-03-08 15:35:51 · 323 阅读 · 0 评论 -
Balanced Number
Balanced NumberTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 65535/65535 K (Java/Others)Total Submission(s): 5199 Accepted Submission(s): 2493Problem DescriptionA balanced nu原创 2017-03-09 11:17:39 · 206 阅读 · 0 评论 -
不要62
不要62 杭州人称那些傻乎乎粘嗒嗒的人为62(音:laoer)。 杭州交通管理局经常会扩充一些的士车牌照,新近出来一个好消息,以后上牌照,不再含有不吉利的数字了,这样一来,就可以消除个别的士司机和乘客的心理障碍,更安全地服务大众。不吉利的数字为所有含有4或62的号码。例如: 62315 73418 88914 都属于不吉利号码。但是,61原创 2017-03-06 21:39:02 · 269 阅读 · 0 评论 -
不要4
#includeint dp[10];int a[10];int dfs(int pos,int last){ if(!pos) return 1; if(!last&&dp[pos]) return dp[pos]; int len=last?a[pos]:9,i,ans=0; for(i=0; i<=len; i++) ans+=i==原创 2017-03-07 10:56:59 · 317 阅读 · 0 评论 -
Beautiful numbers
Beautiful numbers 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 divisible by each of its nonzero digits转载 2017-03-07 18:24:30 · 410 阅读 · 0 评论 -
number
B-numberTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5802 Accepted Submission(s): 3344Problem DescriptionA wqb-number, or B-nu原创 2017-03-07 21:53:41 · 198 阅读 · 0 评论 -
Bomb
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 cu原创 2017-03-06 17:36:37 · 407 阅读 · 0 评论