• + 0 comments

    En Python

    def getMax(operations): s = [] p = [] for i in range(n): s.append(str(ops[i]).split(' ')) if s[i][0] == '1': p.append(int(s[i][1])) if s[i][0] == '2': p.pop() if s[i][0] == '3': print(max(p))