restructure zeta/** to storage/zeta/**

This commit is contained in:
2025-05-10 21:54:24 +09:00
parent 2886820691
commit 2f2e0759fd
407 changed files with 7 additions and 1 deletions

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