皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【简答题】
给定一个顺序存储的线性表,请设计一个算法查找该线性表中最长的连续递增子序列。例如,(1,9,2,5,7,3,4,6,8,0)中最长的递增子序列为(3,4,6,8)。 输入格式: 输入第1行给出正整数 n ( ≤ 1 0 5 );第2行给出 n 个整数,其间以空格分隔。 输出格式: 在一行中输出第一次出现的最长连续递增子序列,数字之间用空格分隔,序列结尾不能有多余空格。 输入样例: 15 1 9 2 5 7 3 4 6 8 0 11 15 17 17 10 输出样例: 3 4 6 8
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【判断题】轻柴油的选用时,使用地区气温低,应选用凝点较低的轻柴油,反之选用凝点较高的轻柴油。
A.
正确
B.
错误
【简答题】相对定向对于一个单模型来讲就是( ),; 对于区域网空三来讲,是( ),。
【单选题】—Look out! Don’t run the red light when crossing the road next time. —_______________.
A.
You’d better not.
B.
Yes, I’d love to.
C.
Sorry, I won’t.
D.
OK. I will.
【判断题】使用轻柴油的地区气温低时,应选用凝点较高的轻柴油。
A.
正确
B.
错误
【单选题】Bob: Yes. Here you are, 20 dollars. Cashier: Thanks. _________. Next one, please.
A.
That’s all
B.
Wait a minute
C.
It’s a good deal
D.
Here’s your change
【判断题】使用地区气温低,应选用凝点较低的轻柴油,反之,则选用凝点较高的轻柴油。
A.
正确
B.
错误
【单选题】Do remember not to run the red light.
A.
记得一定不要闯红灯。
B.
记得不要跟红灯赛跑。
【单选题】“While the sands o’ life shall run” (from “A Red, Red Rose”) can be understood as _______.
A.
but the sands of life shall continue
B.
as long as I am still alive
C.
when the sands of life shall continue
D.
whereas I am still alive
【单选题】We need to import ______ from abroad.
A.
a great deal of equipment
B.
many equipments
C.
an equipment
D.
many pieces of equipments
【简答题】cashier's (desk)_____
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题