百科全书有多少页
- 时间:2020-04-02 21:17:33
- 分类:数学世界
- 阅读:76 次
题目如下:编一本百科全书的页码用了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。
推荐阅读:6 Handy Tools That Can Convert Your Website Into An App 7 Common Email List Building Mistakes How to Do Email Marketing in 2020: A Beginner’s Guide 5 Music Blogs That Are Rocking It And How To Get Your Own Band F Depth First Search Algorithm with Hash Set to Find Elements in a Algorithms to Count How Many Numbers Are Smaller Than the Curren Finding the Closest Divisors Greedy Solution to Reconstruct a 2-Row Binary Matrix How to Use jOOQ Library to Write SQL in Java using Fluent Style? Algorithm to Compute the Number of Days Between Two Dates
- 评论列表
-
- 添加评论