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