百科全书有多少页
- 时间:2020-04-02 21:17:33
- 分类:数学世界
- 阅读:136 次
题目如下:编一本百科全书的页码用了6869个数字,该书共有多少页?
解题思路:这道题实际上是求从1开始一直写到多少,写出的数字正好有6869个。通过例举,可以发现其中有规律可循。
解题方法:
从1到9共有9个数字;
从10到19共有20个数字;
所以从1到99共有:9+20×9=189(个)数字。
从100到999共有:3×900=2700(个)数字。
所以从1到999共有189+2700=2889(个)数字。
因为从1000开始每个数有四位,所以最后的页数是从1000开始的第:(6869-2889)÷4=995(个),这个数就是1000+995-1=1994(页),因为1000是四位数中的第一个,所以第995个四位数就是1994。
推荐阅读:The Terminal Software Engineer Level Facebook Interview Tips and Guidance Book Review: Python for Kids, for Dummies Find the Least Number Sums of Perfect Squares Algorithms to Sum of All Odd Length Subarrays Algorithm to Compute the Largest Triple Products from Array Algorithm to Split a Number Array into Two Balanced Parts by Usi Is QBasic good for Teaching Kids Programming? Accidentally Damaging the Graphic Card by Putting Heatsink Coppe Coding Interview Tips for Software Engineers
- 评论列表
-
- 添加评论