文件名称:1
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:520byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
问题描述:
一本书的页码从自然数1 开始顺序编码直到自然数n。书的页码按照通常的习惯编排,每个页码都不含多余的前导数字0。例如,第6 页用数字6 表示,而不是06 或006 等。数字计数问题要求对给定书的总页码n,计算出书的全部页码中分别用到多少次数字0,1,2,…,9。
编程任务:
给定表示书的总页码的10 进制整数n (-Descr iption of the problem: the page of a book from the natural number 1 until the beginning of coding sequence of natural number n. Book in accordance with the usual habits of page layout, each page are the leading non-redundant number of 0. For example, on page 6 with the number 6 that, rather than 06 or 006 and so on. Count the number of problem calls for a given book' s total page number n, to calculate the total number of books used, respectively, the number of times the number 0,1,2, ..., 9. Programming tasks: Given that the book' s total page 10 hexadecimal integer n (
一本书的页码从自然数1 开始顺序编码直到自然数n。书的页码按照通常的习惯编排,每个页码都不含多余的前导数字0。例如,第6 页用数字6 表示,而不是06 或006 等。数字计数问题要求对给定书的总页码n,计算出书的全部页码中分别用到多少次数字0,1,2,…,9。
编程任务:
给定表示书的总页码的10 进制整数n (-Descr iption of the problem: the page of a book from the natural number 1 until the beginning of coding sequence of natural number n. Book in accordance with the usual habits of page layout, each page are the leading non-redundant number of 0. For example, on page 6 with the number 6 that, rather than 06 or 006 and so on. Count the number of problem calls for a given book' s total page number n, to calculate the total number of books used, respectively, the number of times the number 0,1,2, ..., 9. Programming tasks: Given that the book' s total page 10 hexadecimal integer n (
(系统自动生成,下载前可以参看下载内容)
下载文件列表
1.txt
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。