Opt: 01, 17

This commit is contained in:
PedroEdiaz
2025-10-31 15:57:08 -06:00
parent 0b4bd32e3e
commit 62bdc3c593
2 changed files with 27 additions and 22 deletions

View File

@@ -12,8 +12,8 @@ except Exception as e:
res1, res2 = 0, 0
for i in range(len(input)):
match input[i]:
for c in input:
match c
case '(':
res1 += 1
case ')':