index
:
aoc2015
master
Unnamed repository; edit this file 'description' to name the repository.
http
summary
refs
log
tree
commit
diff
stats
log msg
author
committer
range
path:
root
/
1
/
1.py
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
(limited to '1/1.py')
-rw-r--r--
1/1.py
1
1 files changed, 1 insertions, 0 deletions
diff --git a/1/1.py b/1/1.py
new file mode 100644
index 0000000..7c70985
--- /dev/null
+++ b/
1/1.py
@@ -0,0 +1 @@
+print(sum({'(': 1, ')': -1}[c] for c in open('input').read().rstrip('\n')))