百科全书有多少页
- 时间:2020-04-02 21:17:33
- 分类:数学世界
- 阅读:143 次
题目如下:编一本百科全书的页码用了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。
推荐阅读:Beginner’s Guide to Python’ Enumerate Function Algorithms to Determine Unique Number of Occurrences The Next Permutation Algorithm in C++ (std::next_permutation) Binary Tree Zigzag Level Order Traversal Algorithms using DFS an Work-Life Balance Tips to Keep You Happy as a Blogger Huffington Post Launches New Contributor System And Bloggers Are 5 Tips for a Smooth Transition When Moving Your Blog to a New Ho Jerusalem To Host The Biggest Travel Blogging Event In The World SQL Injection – The Old Trick that Keeps on Giving Anti-Semitic Blogger Found Guilty Of Racial Harassment
- 评论列表
-
- 添加评论