Skip to content

Instantly share code, notes, and snippets.

View rgab1508's full-sized avatar
🐧
learning

Gabriel rgab1508

🐧
learning
View GitHub Profile
t = int(input())
for it in range(t):
s = input()
ans = ""
ans += "("*int(s[0])
for i in range(len(s)-1):
@rgab1508
rgab1508 / main.py
Last active November 17, 2019 08:16
nTst = int(input())
for i in range(nTst):
for i in range(nTest):
n = int(input())
arr = input().split(" ")
arr = list(map(int, arr))
se = input()