-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.py
executable file
·54 lines (40 loc) · 1.07 KB
/
template.py
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
from __future__ import annotations
import math
import operator
import re
from ast import literal_eval
from collections import defaultdict
from copy import deepcopy
from dataclasses import dataclass
from enum import Enum, auto
from functools import cache, reduce
from heapq import heapify, heappop, heappush
from itertools import batched, chain, combinations, cycle, pairwise, permutations, product
from multiprocessing import Pool
from os import cpu_count
from pprint import pprint
from random import random
from statistics import mean, median
from time import time
from typing import Any, Callable, Generator
import numpy as np
import z3
from lib import Point, filter_map, get_limits, is_floatable, is_intable
class State:
def __init__(self, input: str) -> None:
lines = input.splitlines()
pass
def solve(self) -> int:
pass
def part1(input: str) -> int:
return State(input).solve()
def part2(input: str) -> int:
return State(input).solve()
TEST_INPUT = """
"""
PART1_TESTS = [
(TEST_INPUT, None),
]
PART2_TESTS = [
(TEST_INPUT, None),
]