从1开始依次把自然数一一写下去得到:12345678910111213141516…从第12个数字起,首次出现3个连排的1。那么在第()个数字之后将首次出现5个连排的2。
A.555
B.560
C.556
D.565
A.555
B.560
C.556
D.565
第1题
A.40
B.38
C.26
D.22
第4题
问题描述:给定一个自然数n,由n开始可以依次产生半数集set(n)中的数如下:
(1)n∈set(n);
(2)在n的左边加上一个自然数,但该自然数不能超过最近添加的数的一半:
(3)按此规则进行处理,直到不能再添加自然数为止.
例如,set(6)={6,16,26,126,36,136}.半数集set(6)中有6个元素.注意,该半数集不是多重集.集合中已经有的元素不再添加到集合中.
算法设计:对于给定的自然数n,计算半数集set(n)中的元素个数.
数据输入:输入数据由文件名为input.txt的文本文件提供.每个文件只有一行,给出整数n(0<n<1000).
结果输出:将计算结果输出到文件output.txt.输出文件只有一行,给出半数集set(n)中的元素个数.
第6题
A.188
B.198
C.192
D.202
第7题
A.188
B.198
C.192
D.202
第8题
从下列英语叙述中,选出5条正确的叙述,把编号依次写在下面。
(1) The language translator converts the symbolic program into source program.
(2) The coded program written by a programmer is called an object program.
(3) COBOL is self-documenting unlike many technical language.
(4) FORTRAN has high capabilities for performing input/output operations and in handling nonnumeric data.
(5) Loading is a process through which the information on the diskettes or tapes is read by the input unit and stored in the proper memory location.
(6) The assemble program executes source codes directly by determining the meaning of each statement as it is encounted.
(7) Magnetic tape uses cylinders for finding data.
(8) Hexadecimal is used as a shorthand for the internal codes.
(9) Another name of diskette is floppy disk.
(10) An IF-THEN-ELSE selection technique can never be part of a loop.
(11) The most popular language for scientific computing is FORTRAN.
(12) It is much easier to access data in a file than in a database.