mirror of
https://github.com/ershisan99/advent-of-code.git
synced 2025-12-16 20:49:24 +00:00
10 lines
187 B
Python
10 lines
187 B
Python
import os
|
|
|
|
abs_file_path = os.path.join(os.path.dirname(__file__), "./input.txt")
|
|
|
|
input = open(abs_file_path).read().strip()
|
|
|
|
result = input.count("(") - input.count(")")
|
|
|
|
print(result)
|