摘要: 算法思路: 采用遍历的算法,从1到M,一个一个计算1的个数。统计出来。代码:#include using namespace std;int f(int m){ int n = 0; for (int b = 1;b 0) { if (i%10 =... 阅读全文
posted @ 2015-06-04 19:14 植入代码 阅读(277) 评论(0) 推荐(0) 编辑