forked from benediktwerner/AdventOfCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.py
More file actions
35 lines (25 loc) · 645 Bytes
/
template.py
File metadata and controls
35 lines (25 loc) · 645 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env python3
from os import path
from collections import *
from networkx import *
from copy import deepcopy
import itertools
import math
import re
import pyperclip
def ints(string):
return list(map(int, re.findall(r"-?[0-9]+", string)))
def solve(inp):
for line in inp.splitlines():
pass
example = """\
"""
if example and not example.isspace():
print("Example:", solve(example))
else:
print("No example provided")
with open(path.join(path.dirname(__file__), "input.txt")) as f:
result = solve(f.read())
print("Output:", result)
pyperclip.copy(str(result))
print("Copied to clipboard")