问题 单项选择题

设栈S和队列Q的初始状态为空,元素按照a,b,c,d,e的次序进入栈S,当一个元素从栈中出来后立即进入队列Q。若队列的输出元素序列是c,d,b,a,e,则元素的出栈顺序是 (61) ,栈S的容量至少为 (62)

(61)处填()。

A.a,b,c,d,e

B.e,d,c,b,a

C.c,d,b,a,e

D.e,a,b,d,c

答案

参考答案:C

单项选择题
单项选择题

Lying in the sun on a rock, the cougar saw Jeb and his son, Tom, before they saw it. Jeb put his bag down quickly and pulled his jacket open with both hands, making himself look big to the cougar. It worked. The cougar hesitated, ready to attack Jeb, but ready to forget the whole thing, too.
Jeb took off his jacket, grasped Tom and held him across his body, making a cross. Now the cougar’s enemy looked even bigger, and it rose up, ready to move away, but unfortunately Tom got scared and struggled free of Jeb.
"Tom, No !" shouted his father.
But Tom broke and ran and that’s the last thing you do with a cougar. The second Tom broke free, Jeb threw himself on the cougar, just as it jumped from the rock. They hit each other in mid air and both fell. The cougar was on Jeb in a flash, forgetting about Tom, which was what Jeb wanted. Cougars are not as big as most people think and a determined man stands a chance, even just with his fists. As the cougar’s claws got into his left shoulder, Jeb swung his fist at its eyes and hit hard. The animal howled(吼叫) and put its head back. Jeb followed up with his other fist. Then out of the corner of his eye, Jeb saw Tom. The boy was running back to help his father.
"Knife, Tom," shouted Jeb.
The boy ran to his father’s bag, while Jeb started shouting as well as hitting, to keep the cougar’s attention away from Tom. Tom got the knife and ran over to Jeb. The cougar was moving its head in and out, trying to find a way through the wall. Jeb was making out of his arms. Tom swung with the knife, into the cougar’s back. It howled horribly and ran off into the mountains.

What do we know about cougars

A.They are afraid of noises.
B.They hesitate before they hit.
C.They are bigger than we think.
D.They like to attack running people.