题目
求一道题目的算法伪代码
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
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
提问时间:2020-12-27
答案
举一反三
已知函数f(x)=x,g(x)=alnx,a∈R.若曲线y=f(x)与曲线y=g(x)相交,且在交点处有相同的切线,求a的值和该切线方程.
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
最新试题
- 1桌子上有40本语文书,50本英语书.______ _____are on the desk.
- 2英语作文My pet dog60词左右自由发挥
- 3方程4x+2m=3x+1与3x+2m=6x+1的解相同,(1)求m的值(2)求(m+2)的2009次方和
- 4把17/5写成一个正数的平方的形式为
- 52895.8用科学计数法表示是多少
- 6已知函数f(x)是定义在(-2,2)上的奇函数,若x∈(0,2)时,f(x)=(2^x)-1,则f(log2 1/3)的值为?
- 7我想问有没有哪个成语的每个字部首均相同
- 8作文题目(500字以上):我家在幸福小区,现在环境受到污染要给报社一封信.应该怎么写啊?
- 9用数学归纳法证明:1-3+5-7+...+(-1)^N-1(2N-1)=(-1)^N-1*N
- 10甲乙两人步行的速度之比是13:11,如果甲乙分别从AB两地同时出发,相向而行,5小时相遇,如果他们同向而行,
热门考点
- 1书法家勤学苦练的故事有哪些
- 2区分一下分子,原子,离子,质子,中子,原子核
- 3999的999次方和2007的2017次方的个位数分别是多少?要让初一的看得懂
- 4如何看待近代资本主义经济体系形成与清朝国家主权的关系?
- 5盐酸滴定氢氧化钠的操作
- 6某工人加工一个机器零件,原本要6小时,技术改革后用5小时,工作效率提高了( )%
- 7季羡林的 《怀念母亲》的段落 并填空
- 8still retains so intimate a connection with it
- 9在实施城市拆迁工程时,为了减少对居民的影响,常采用定向爆破的方式.若某次拆迁一高层建筑时,采用的爆破导火索燃烧速度是0.8cm/s,人跑步的速度是5m/s.若人点燃导火索后需要离爆
- 10he felt sad after hearing the f____ news