diff --git a/2015/01.py b/2015/01.py index 8828dd9..617c37d 100644 --- a/2015/01.py +++ b/2015/01.py @@ -12,8 +12,8 @@ except Exception as e: res1, res2 = 0, 0 -for c in input: - match c +for i in range(len(input)): + match input[i]: case '(': res1 += 1 case ')': diff --git a/2015/08.py b/2015/08.py index e4c452c..6ee420a 100644 --- a/2015/08.py +++ b/2015/08.py @@ -1,5 +1,3 @@ -import re - # Fill Input try: