求一道题目的算法伪代码
题目
求一道题目的算法伪代码
A company handles international messages. Currently, the messages are printed onto
a continuous strip of paper which is cut up and pasted onto sheets of paper for delivery.
The owner of the company has decided to automate this process, printing the messages
directly onto sheets of paper. Your task is to develop a pseudo code algorithm to achieve
this purpose. The owner can tell you the following things:
1. The incoming message arrives in the form of a series of one or more blocks of data.
2. The outgoing message will be produces as a series of pages.
3. Each page may contain up to 60 lines.
4. Each line can contain up to 100 characters.
5. Words may not be split across lines.
6. As many words as possible must be fitted onto each line.
7. Each message must start on a new page.
8. You have 3 sub-programs already provided.
a. getBlock which fills an array with the next incoming block of text.
b. putLine which prints t
答案
举一反三
已知函数f(x)=x,g(x)=alnx,a∈R.若曲线y=f(x)与曲线y=g(x)相交,且在交点处有相同的切线,求a的值和该切线方程.
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
最新试题
热门考点