随笔分类 - 数位dp
记忆化或者经典三重循环
摘要:题目描述: 1049 Counting Ones (30 分) The task is simple: given any positive integer N, you are supposed to count the total number of 1's in the decimal for
阅读全文
摘要:问题描述:求1-n内的数中包含49的数的个数,数位dp模板 代码: #include<iostream> #include<string.h> #include<cmath> #include<set> #include<map> #include<string> #include<queue> #
阅读全文
摘要:题目描述: B-number Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 12235 Accepted Submission(s): 732
阅读全文

浙公网安备 33010602011771号