15 lines
238 B
Python
15 lines
238 B
Python
|
|
#!/usr/bin/env python3
|
||
|
|
|
||
|
|
from dataclasses import dataclass
|
||
|
|
|
||
|
|
@dataclass
|
||
|
|
class Range:
|
||
|
|
start: int
|
||
|
|
last: int
|
||
|
|
|
||
|
|
with open("data.txt") as file:
|
||
|
|
lines = [line.rstrip() for line in file]
|
||
|
|
|
||
|
|
state = "seeds"
|
||
|
|
for i in lines:
|
||
|
|
match state:
|