#2836. stack 小练习
stack 小练习
Background
定义一个char类型的stack,将26个字母存储到stack中,并逆序输出。
Input
输入26个字母。
Output
按要求输出
Samples
a b c d e f g h i j k l m n o p q r s t u v w x y z
z y x w v u t s r q p o n m l k j i h g f e d c b a
定义一个char类型的stack,将26个字母存储到stack中,并逆序输出。
输入26个字母。
按要求输出
a b c d e f g h i j k l m n o p q r s t u v w x y z
z y x w v u t s r q p o n m l k j i h g f e d c b a
By signing up a 黑猫OJ universal account, you can submit code and join discussions in all online judging services provided by us.