将1,2,3,4,5,…,2015依次从小到大排成一个多位数,记作P=123456789101112…2015,则P的所有的数码之和等于:A.28098 ...

作者: tihaiku 人气: - 评论: 0
问题 将1,2,3,4,5,…,2015依次从小到大排成一个多位数,记作P=123456789101112…2015,则P的所有的数码之和等于:
选项 A.28098 B.28097 C.28096 D.28095
答案 A
解析 (1)从1开始每连续10个数的个位数数字之和都是1+2+…+9=45,则所有个位数字之和为201×45+1+2+3+4+5=9060。(2)从1开始每连续100个数,十位上1-9每个数字各出现10次,数字之和是450,则所有十位数字之和是20×450+6=9006。(3)从1开始每1000个数中,百位上1-9每个数字各出现100次,数字之和是4500,则所有百位数字之和是2×4500=9000。(4)从1000到1999,千位上的1共出现1000次,和为1000。从2000到2015,千位上的2共出现16次,和为32。故本题所求为9060+9006+9000+1032=28098,选择A。
更多 网友评论0 条评论)
暂无评论
错误啦!

错误信息

  • 消息: [程序异常] : MISCONF Redis is configured to save RDB snapshots, but it's currently unable to persist to disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error.
  • 文件: /twcms/kongphp/cache/cache_redis.class.php
  • 位置: 第 85 行
    <?php echo 'KongPHP, Road to Jane.'; ?>