Compare commits
4 commits
f6c24e698c
...
15e50e8dec
Author | SHA1 | Date | |
---|---|---|---|
Bruno BELANYI | 15e50e8dec | ||
Bruno BELANYI | 895a26c2a9 | ||
Bruno BELANYI | ef00c627c4 | ||
Bruno BELANYI | e7d9983569 |
43
2024/d04/ex1/ex1.py
Executable file
43
2024/d04/ex1/ex1.py
Executable file
|
@ -0,0 +1,43 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import itertools
|
||||
import sys
|
||||
from typing import NamedTuple
|
||||
|
||||
|
||||
class Point(NamedTuple):
|
||||
x: int
|
||||
y: int
|
||||
|
||||
|
||||
def solve(input: str) -> int:
|
||||
def parse(input: list[str]) -> dict[Point, str]:
|
||||
return {
|
||||
Point(x, y): c for x, line in enumerate(input) for y, c in enumerate(line)
|
||||
}
|
||||
|
||||
def count_xmas(grid: dict[Point, str], dims: Point) -> int:
|
||||
max_x, max_y = dims
|
||||
count = 0
|
||||
for x, y in itertools.product(range(max_x), range(max_y)):
|
||||
for dx, dy in itertools.product(range(-1, 1 + 1), repeat=2):
|
||||
if dx == 0 and dy == 0:
|
||||
continue
|
||||
count += all(
|
||||
grid.get(Point(x + dx * i, y + dy * i)) == c
|
||||
for i, c in enumerate("XMAS")
|
||||
)
|
||||
return count
|
||||
|
||||
lines = input.splitlines()
|
||||
grid = parse(lines)
|
||||
return count_xmas(grid, Point(len(lines), len(lines[0])))
|
||||
|
||||
|
||||
def main() -> None:
|
||||
input = sys.stdin.read()
|
||||
print(solve(input))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
140
2024/d04/ex1/input
Normal file
140
2024/d04/ex1/input
Normal file
|
@ -0,0 +1,140 @@
|
|||
SASASMSSSMSMSMSMSSMSAMXMAMAMXSXXXMAMMXSAMXMXMXSMMMXXXSXXAXSMMMAMXAXSMSSXXMSASASMXSSMSMSXMMMAMMMXXSAMXSSMXAXSASMMMXMASAXSXMXMAMXAMXXMAXXAMAMX
|
||||
AASAXAAAAXXASASMXSAX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MSXSASMMAXAAMMMAMMAMMAMAAXASXSAMXAMMMMMSMSMMMMXMMAAXSMSAMXMSMMSAMXXMAMXXMASXMXSXMSA
|
||||
MMMMMXMAXAMXMSASMMMXMMSMMAXXMMAAXAAMAMMXMMSSMSASAMMSMSMSAAAXSAMAMAXSMMXSAMXAXMAMXMSASAMXMMASAAAAAXAXAXMASMSMMSXSMMXMXXXMASXMXMSXSMASASAXMXXM
|
||||
MSAAXSMMSAMAMMAMXAMAXASAMMXSAMSMMXMSSXSASMMAAMXMAMAAAMXMMMSMMAMSMSXMASXSASMMXSASMXMAXMAMXMASMSMSSSMXSASASXMAXXMXMXMASXSMAMAXMASAAMXMMMAMSMAX
|
||||
SSMSXSAAXXMASXSXSASMSASAMAAMAMMMSXXXAASAMXMSMMSSMMXSAMAXSAMXMMMXAXASAMAMXMAMAMMMAXMAMMAMAMMSAXXMMXXAXXMAMXMSSSMSXXAAXXXMASXMASMMMSSMXMSAASXM
|
||||
XXAAMMMMSMSASAXAMAAXMASAMMSSMMMAMAMMMMMAMXAMXAAAAAMMAMXXMASXMMSMXMASAMXMASMMMSSSSSMAMSASXSSMMMASASASMSMSMSAAAAAMMMMMSMMMASAMSXAXAAXMAAXSMSXM
|
||||
MMMMAAAXAMMASMMXMSMSAMXXXXAAASMAMXMASXSSMMSMMMSSMMMSAMSXSAMXAAAAASXSAMXSASAAXAAAAAXAMSAMAMXAMSXMASAMSXAAAMMMSMMMAAAXXMASXSMMASMMMSASMSMAXMMS
|
||||
XMMXSMSMMSMAMXXXXXMAMSAMXMSSMMSMSASMSXXAXAXXMAXXMSAMXXXXMASAMSMSAMXSXMAMXSXMMMSMSMMMMMAMAMSSMMMMAMAMAMSMXMXXMXMASMMSAMXAASAMXSXXXXMXAMMAMXSX
|
49
2024/d04/ex2/ex2.py
Executable file
49
2024/d04/ex2/ex2.py
Executable file
|
@ -0,0 +1,49 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import itertools
|
||||
import sys
|
||||
from typing import NamedTuple
|
||||
|
||||
|
||||
class Point(NamedTuple):
|
||||
x: int
|
||||
y: int
|
||||
|
||||
|
||||
def solve(input: str) -> int:
|
||||
def parse(input: list[str]) -> dict[Point, str]:
|
||||
return {
|
||||
Point(x, y): c for x, line in enumerate(input) for y, c in enumerate(line)
|
||||
}
|
||||
|
||||
def count_xmas(grid: dict[Point, str], dims: Point) -> int:
|
||||
max_x, max_y = dims
|
||||
count = 0
|
||||
for x, y in itertools.product(range(max_x), range(max_y)):
|
||||
if grid.get(Point(x, y)) != "A":
|
||||
continue
|
||||
if {grid.get(Point(x + dx, y + dy)) for dx, dy in ((-1, -1), (1, 1))} != {
|
||||
"M",
|
||||
"S",
|
||||
}:
|
||||
continue
|
||||
if {grid.get(Point(x + dx, y + dy)) for dx, dy in ((1, -1), (-1, 1))} != {
|
||||
"M",
|
||||
"S",
|
||||
}:
|
||||
continue
|
||||
count += 1
|
||||
return count
|
||||
|
||||
lines = input.splitlines()
|
||||
grid = parse(lines)
|
||||
return count_xmas(grid, Point(len(lines), len(lines[0])))
|
||||
|
||||
|
||||
def main() -> None:
|
||||
input = sys.stdin.read()
|
||||
print(solve(input))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
140
2024/d04/ex2/input
Normal file
140
2024/d04/ex2/input
Normal file
|
@ -0,0 +1,140 @@
|
|||
SASASMSSSMSMSMSMSSMSAMXMAMAMXSXXXMAMMXSAMXMXMXSMMMXXXSXXAXSMMMAMXAXSMSSXXMSASASMXSSMSMSXMMMAMMMXXSAMXSSMXAXSASMMMXMASAXSXMXMAMXAMXXMAXXAMAMX
|
||||
AASAXAAAAXXASASMXSAXAMXXSMSSMSAXSMSMMASAMAAXMAMAAAMMMMMSMXSAMXSSMSMXMAXMASXAXAMXAAXMAMXAMASAMAAMXMASAMAAMSMSASASMMMMAMSXSMASMMSMSMMASMMMSAMA
|
||||
MXMXMMMSMMMMMAMXAMXMSSSMAXAAXMAMAAAXMASASMSXMASMMXSAAAAAMAX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