Skip to content

Instantly share code, notes, and snippets.

@velasquezkevin
velasquezkevin / bracket.py
Created October 20, 2019 06:13
Problem B. Bracket Sequence - ICPC 19/10/2019
n = int(input())
x = input().split(" ")
i = total = 0
def operar(op = True, subtotal = 1):
global i, x
while True:
el = x[i]
i += 1