摘要: 转自:http://pandonix.iteye.com/blog/204840 Mark N为正整数,计算从1到N的所有整数中包含数字1的个数。比如,N=10,从1,2...10,包含有2个数字1。 相信很多人都能立刻得出以下的解法: for(n:N) { 判断n包含1的个数; 累加计数器; } 阅读全文
posted @ 2018-11-01 16:46 eeeeeeee鹅 阅读(2145) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/grandyang/p/8395062.html Mark 代码: You have 4 cards each containing a number from 1 to 9. You need to judge whether they cou 阅读全文
posted @ 2018-11-01 15:50 eeeeeeee鹅 阅读(406) 评论(0) 推荐(0) 编辑