题解 | #两数之和#
用两个栈实现队列
http://www.nowcoder.com/practice/54275ddae22f475981afa2244dd448c6
# -*- coding:utf-8 -*- a = eval(input()) s = [] for i in a: if i[:3] == "PSH": s.append(i[3:]) print(",".join(s))
用两个栈实现队列
http://www.nowcoder.com/practice/54275ddae22f475981afa2244dd448c6
# -*- coding:utf-8 -*- a = eval(input()) s = [] for i in a: if i[:3] == "PSH": s.append(i[3:]) print(",".join(s))
相关推荐