create dev channel

This commit is contained in:
2025-05-07 04:44:30 +09:00
parent 603fca2b20
commit 16a8e59450
426 changed files with 643 additions and 36 deletions

25
zeta/py/completed/9012.py Normal file
View File

@@ -0,0 +1,25 @@
Glevel = 0
Nlevel = 0
testCase = int(input())
isVPS = True
for i in range(testCase):
inString = input()
if len(inString) % 2:
print("NO")
continue
for i in inString:
if i == "(":
Glevel += 1
elif i == ")":
Glevel -= 1
if Glevel < 0:
isVPS = False
break
if isVPS and Glevel == 0:
print("YES")
else :
print("NO")
isVPS = True
Glevel = 0