Add input and skeleton file
This commit is contained in:
parent
8325c6e224
commit
0ffb151a7c
2 changed files with 348 additions and 0 deletions
323
day3/input
Normal file
323
day3/input
Normal file
|
@ -0,0 +1,323 @@
|
|||
.#.#....##.......#..........#..
|
||||
...#...........##...#..#.......
|
||||
#.####......##.#...#......#.#..
|
||||
##.....#.#.#..#.#............#.
|
||||
##.....#....#.........#...##...
|
||||
###..#.....#....#..............
|
||||
..........#..#.#..#.#....#.....
|
||||
##.....#....#.#...#.##.........
|
||||
#...#......#....##....#..#.#...
|
||||
.##.##...#....##..#.#.....#...#
|
||||
.....#.#..........##.#........#
|
||||
.##..................#..#..##.#
|
||||
#.#..........##....#.####......
|
||||
.#......#.#......#.........#...
|
||||
#....#..##.##..##........#.#...
|
||||
##..#.##..#...#..####.#..#.....
|
||||
###....#.###.##...........##..#
|
||||
.....#.##.....##.#..#####....##
|
||||
....#.###....#..##....##...#...
|
||||
..###.#...##.....#.##..#..#.#..
|
||||
#...#..#..#.........#..#.......
|
||||
##..#.#.....#.#.#.......#...#.#
|
||||
...#...##.#........#...#.......
|
||||
..#..#.#..#...#...#...........#
|
||||
........#.....#......#...##....
|
||||
#........##.##.#.#...#...#.....
|
||||
####.......#.##.###.#....#.....
|
||||
...#...........#...#......#...#
|
||||
##...#...#............#.......#
|
||||
....#...........##.......#.....
|
||||
###......#.....#....#...#.#...#
|
||||
.....##..........#.......#.#...
|
||||
##.##.##...#......#....#.......
|
||||
##..#.#..#......#...#..#.......
|
||||
....#....##.##............####.
|
||||
..#.###..#.##.###..#.##.......#
|
||||
#.##..#.#.....#..#.....##......
|
||||
..##..#.....##.#.##........#...
|
||||
.#..#.#......#..#............#.
|
||||
.....#..#.#...#....#.##.#......
|
||||
.#...##.#..#.#...##...##..##...
|
||||
###............#.#..#..#...#...
|
||||
..#..##.####.#.....#.....##.###
|
||||
#....#.##..##....#..#...#.##.#.
|
||||
.....#.##.........##...##......
|
||||
.........####.#....#.#......#.#
|
||||
.........#.#..#...#.#..#.#....#
|
||||
.#.....#..##.##..##....#.......
|
||||
..........##......#.##.###....#
|
||||
.##...###..##.#...#........##..
|
||||
..............#.#....#.#.###.##
|
||||
..##.##.......#.#......##...#..
|
||||
.#.....#..##..#.###...#..#.##.#
|
||||
#.....#.#..#...#........#...#..
|
||||
.#......#....#.#.....###...#..#
|
||||
..##.#....#..##......#.....#...
|
||||
..#.#.##..#.....#.####..###....
|
||||
.........#......#..#...........
|
||||
..#........#.##.#.....##.##..#.
|
||||
.......#.........#....#...#.#..
|
||||
.##.....#.#....#.#.......#.....
|
||||
..........#.##........##...##..
|
||||
###..###.#.#..#..#####.##.#.##.
|
||||
..##..##.#.#...#..#.#.#......#.
|
||||
#..#..#..#..##..#.....#......#.
|
||||
..#....#.##..#......##.........
|
||||
..#.##......#...##.#......#....
|
||||
.......#..#.##.#.....#.........
|
||||
.......#.#.#.###...##......#...
|
||||
.....#.#..........#..#...#.....
|
||||
....##..........#..........##..
|
||||
..#......#.....#.##.#..#...#.#.
|
||||
....#.....#..#...#..#.#.##..###
|
||||
.####....#........#...#........
|
||||
...##.#.##.#..#...##...#.##....
|
||||
....#...#...#.#.#.#...#..#.....
|
||||
.....#...#.#.....#.#........##.
|
||||
..#.#.......###.#.....##.......
|
||||
......#.........##....#....#..#
|
||||
.............##.....##.........
|
||||
.........##...##.......#.....#.
|
||||
##.........#..........#.###..##
|
||||
...#.....#......#....#..##.....
|
||||
##..#...#...##.#.....#.#......#
|
||||
..#...##.#.......#.#......#.##.
|
||||
......#.......#.#...........#..
|
||||
..........#.....##............#
|
||||
#........#...#..#.......###.##.
|
||||
.##...........#.#........#.#.#.
|
||||
...#..##...#.#....#####.#......
|
||||
.....##...###...#..#.##...####.
|
||||
...#....#.....#..#.......#.....
|
||||
#....#....#...#..#..#.######..#
|
||||
#.###...........#......#...#..#
|
||||
.#.#.#.#..#....#....#...##.#...
|
||||
.#..#.........#.#....###...#...
|
||||
......#..##.##..........#....##
|
||||
.....#......##....##.....#...#.
|
||||
.#...#.#.#....##....#..#....#.#
|
||||
..................#..###.#..##.
|
||||
..#.........#......#....#..###.
|
||||
#.#.....#..#..#....###..###....
|
||||
..##..##.#..##........##...##..
|
||||
##..#........##..###..#.....#.#
|
||||
..#..###..#......#....#...#...#
|
||||
#..#.#..............##.#..#.#..
|
||||
.....####....#...####.....#.#..
|
||||
.....#....##.#......###........
|
||||
##.##...#.#.#.#.......#....##..
|
||||
.#......#...#.#....#..##.#.##.#
|
||||
#.#.##.#.#......#..##........##
|
||||
...##.....#.....#...#..###...#.
|
||||
........###.....#.....#...##..#
|
||||
.....#.##.##......#.#....#...#.
|
||||
.#....##.......#..#.####.......
|
||||
.#..#....#..........#......#.#.
|
||||
.#.##.##.....###.#.#...........
|
||||
.........#......#..##..........
|
||||
....#...##.#.#.#..#.#.........#
|
||||
..#.....#.##...#..#..#.###....#
|
||||
...#.##......#.....##....#.....
|
||||
###............#.#....#...#....
|
||||
.......#.....#..#.#.#....#..#.#
|
||||
...#......#.#..##..#....#...#.#
|
||||
............##........##..##...
|
||||
..#..#.##..#......###..#.......
|
||||
........#.........#............
|
||||
..#...#.#########.#...##..###..
|
||||
#....#......#.......#.#.....#..
|
||||
#.#..#....###.###....#...#.#...
|
||||
#...###.#.#.......#.##......#..
|
||||
.................#...#.#.#.....
|
||||
##....#...#........#....#.#..#.
|
||||
......#.....#...#..........#.#.
|
||||
##..........#...#..........#.##
|
||||
..#.#.##.#....#.#......#...##..
|
||||
.....#.......#..#.....#........
|
||||
#.##.#..##..#.......##.........
|
||||
....#......#..#..#.#...#.......
|
||||
...#....#................###...
|
||||
.##.....#.#....#.#..........##.
|
||||
...#..#....#.##.##......#......
|
||||
..#.#....#.......#.#..##.......
|
||||
....#.....#..........##.#.#####
|
||||
#.....................##..#..#.
|
||||
.###..#.##.......##.#...#..#...
|
||||
...###.......#..#...#......#..#
|
||||
#..#...#.#..#.#..#..#.##.......
|
||||
#...##.......#..#..#.##..###...
|
||||
......#....#.#.#........#.##..#
|
||||
..##..#....#....#..#.#..#......
|
||||
..##.#...#.#######..#...#.....#
|
||||
..#....#..#.........#..##......
|
||||
...#....#.#......#..#..#.#.....
|
||||
#..#....#........#.#..##....###
|
||||
#....#..##......##.##.....#.###
|
||||
...#.#..........#..#.#.#.#.##..
|
||||
......##..#.#..#.#....#....#...
|
||||
##....#....#..#..#.##......#...
|
||||
....#.#..##.#.#...###....##.#..
|
||||
...#.......##..#.......#...#...
|
||||
......##.......#..##.....#...#.
|
||||
...#.#...#...........#...#.....
|
||||
.#....#...#......##.##..###..#.
|
||||
.#..........#...#...#...##.##..
|
||||
.....###..#.....#..##....#.####
|
||||
..#.###..#..##..##.....#.#.....
|
||||
.............#.###...##.#.....#
|
||||
....###.......###.#.....#..#.#.
|
||||
........##.#.........#.....###.
|
||||
.....###.#..#.....#...#..#.....
|
||||
.#....#..##.#..#.#....#.......#
|
||||
........#......#.#..#.#..#...##
|
||||
...#.##.##......#..............
|
||||
.#.....##.#.....#..#......##...
|
||||
#..#..#.....#.....#.....###....
|
||||
.##...........#..#.##.....#....
|
||||
..#.#......#.#...#.##.#..#...##
|
||||
...#..........#.....#..........
|
||||
#.#.#.#.#...#....#...#.....##..
|
||||
#......##...#...#..........#.#.
|
||||
....##........#.#..............
|
||||
#..#.#.#..#........##......#.##
|
||||
........####...##.#.....#......
|
||||
....#........#.#..#..##..#.#...
|
||||
.#.....#..###...#..#.....#..#..
|
||||
#......###.#..#....#..#.#......
|
||||
....#.....##.##..#...#.#..##.#.
|
||||
..##..#...#.#......#....#...#.#
|
||||
#..##...##..#...###...#..#.....
|
||||
.......#.....#...........##....
|
||||
#..##....#........#....##..#.#.
|
||||
.#........#..##...###.#..#.....
|
||||
.#.#....#..##...#...##.#..###..
|
||||
#.........#.......#.....#.#....
|
||||
#..#.....#.#.###.#..#......#...
|
||||
....#..#.#....#..##..###....###
|
||||
###.##.#.#..#...........#.#.#..
|
||||
..##.#.......#......#..##....#.
|
||||
.....#.#.#.......##.......#...#
|
||||
...........#.##....##.##....#.#
|
||||
...#.......#..#.##..#......#..#
|
||||
#.#.#...#......##.#...........#
|
||||
##........#...........###.#..#.
|
||||
..........#.#.#....#.#..##.#.#.
|
||||
...#.#.#....#..........#..#....
|
||||
#.#....###.#.#..#.......###...#
|
||||
.#....#......#.#.#..#..#.......
|
||||
......##.............#....#.#.#
|
||||
.#..........#.........#.##.....
|
||||
##....#....##....#..#.......#..
|
||||
#.##.##.#..#..#.....#..#.##.#..
|
||||
.#..#.......##..#.....##.##....
|
||||
.......#..........#.#.##..#.##.
|
||||
....#.....#.#...##....##.......
|
||||
.......#.........#...##....##.#
|
||||
#.....#......#..........#...#..
|
||||
...#.#.......#.#..#....###..#..
|
||||
.....#.#.#.........#...........
|
||||
.#..###.#.#........#.#.........
|
||||
.........#..#......##...##....#
|
||||
...###..#.....##.....#.###....#
|
||||
.##...#...#........###.#..#....
|
||||
.##........#..#.###.######.##.#
|
||||
##.#...#.#....#..##.#....##....
|
||||
.......##.....##.#..###.#......
|
||||
..##...##........#.......#....#
|
||||
#..##...#.####...###......#...#
|
||||
.##.....#.##.#.#.....###.#..##.
|
||||
..###....#.#.###.#....#........
|
||||
....#..###..#...#....#..#..#.#.
|
||||
#.#.##....##...##.......#......
|
||||
.........#...#....#..#.........
|
||||
.............#...#..##.#.......
|
||||
...#.##.......#...#.#..##.##...
|
||||
.####.#.##..#.#......#.##...#.#
|
||||
.#..#.#.....#.................#
|
||||
..#.##..###....#...#......####.
|
||||
..##..##...........#....#...#..
|
||||
....#...#...#...#.......#....#.
|
||||
#.#...###...#...#.#...#....##.#
|
||||
......#...#.#.......#.....#...#
|
||||
....##...#.#.#....#....#.#....#
|
||||
.....#.....#...##..#...#....##.
|
||||
#.....#....#......##.##....#...
|
||||
...#.#....#...#....#.#....##..#
|
||||
...#.#..#...##....###..#.......
|
||||
...##......###...###.#...#..#..
|
||||
##.......#.......###.......#..#
|
||||
..##.##..###.#............#...#
|
||||
#.....##..#..##....##..#.......
|
||||
......#.#...#......#.....#.....
|
||||
#...........#....#..##.##.#....
|
||||
.......#..#......#...#....#...#
|
||||
.#...##...........#......#...#.
|
||||
#........#....##...###.#....#..
|
||||
.....#.......##.........#.##...
|
||||
.#.###..#....#..##.#..#.#..#...
|
||||
#.......#.##.#.#....#.#..#....#
|
||||
###.....#.#.......#..#......#.#
|
||||
#..#.#.......#.#..##..##.#.#...
|
||||
#..#.#.#.###........#.....#...#
|
||||
#.#.#..#..##.....#...........#.
|
||||
..#.#..#.....#...#...#...##....
|
||||
...#.##......#...##.#...#.#.#.#
|
||||
#..#.#.#.#.......####..........
|
||||
..#......#.#......##.###.....##
|
||||
..#...##..#.........##....#.##.
|
||||
##.##.##.#.#.....#..........##.
|
||||
.#.....###.#..#....#..#.###...#
|
||||
#...##.......###....#.#..#.....
|
||||
..#....##.........##.........##
|
||||
......#....#.##.......#........
|
||||
..#.#.#..#...#...#...##.#...#..
|
||||
......#..##.#.#.#...##...#.#.##
|
||||
#..#...##.#.....#...#.##.......
|
||||
..#..#.........##.#...#.##...##
|
||||
##.##.#....#.......#.##..#.....
|
||||
.....##...##.##...##.........##
|
||||
#......#...#.......#...#...#...
|
||||
...##...........#...#..#.......
|
||||
.#.##.#..#........#....#.......
|
||||
#.#...#..#......##...#.#.##....
|
||||
##........####..#.#...#.#.##.##
|
||||
#..#.#.##......##.#.#..#.......
|
||||
.....#.........#..#.####....#..
|
||||
......##..#....#...#.#....#....
|
||||
#...##........#.........#.....#
|
||||
.#.#...#.#.#..#............##.#
|
||||
.#..#....#....#.....#...#.....#
|
||||
..###...#..#.....#.##.###...#.#
|
||||
.#.###..#..#...#.#...#.#......#
|
||||
#...#####......###........##...
|
||||
.....#.....#..#.#....#..##.....
|
||||
....##...#.#.##.#####...#....#.
|
||||
.#.#.........##.#.......#..##..
|
||||
.#...#.#...#...#....#.#...##.#.
|
||||
.##...#..#.#..#......#.#.#..##.
|
||||
..#.....#..#.....##.....#......
|
||||
..#........#..##...#.......###.
|
||||
.#....#.......#....#....#..#...
|
||||
....#......#.#.#.........#.....
|
||||
..##...#.#.#...#.#........#....
|
||||
.#.....####...##.#..#...##.....
|
||||
...#.....#...#...#....#....#...
|
||||
.........#..#.#.....#..#.#..#..
|
||||
.........##...........#.......#
|
||||
......#..#.....##...#.##.#.....
|
||||
.#......##........##...#.#.##..
|
||||
.....#.#..##...........#..#..#.
|
||||
...#.......#...#.#..#.##..#.##.
|
||||
...#.......#.....#.#...#.##.#..
|
||||
#.....#.............##.#..####.
|
||||
.#...#......#...##.#....#.#....
|
||||
.##..##.##....#.#.....#.......#
|
||||
...#...#....#....##.#..#....##.
|
||||
..............##....#.......#.#
|
||||
.#.#.#...##..#..#...###.#..#...
|
||||
.#.#...#.#..#.#..#...######..#.
|
||||
........#......#.#..#.#....#...
|
||||
..###.....###.#.##....#...##...
|
||||
.##.#.....#.......##.......#...
|
||||
..#..##...#..........#.#....#.#
|
25
day3/main.hs
Executable file
25
day3/main.hs
Executable file
|
@ -0,0 +1,25 @@
|
|||
#! /usr/bin/env -S"ANSWER=42" nix-shell
|
||||
#! nix-shell -p ghcid
|
||||
#! nix-shell -p "haskellPackages.ghcWithPackages (p: with p; [])"
|
||||
#! nix-shell -i "ghcid -c 'ghci -Wall' -T main"
|
||||
|
||||
{-# LANGUAGE OverloadedStrings #-}
|
||||
|
||||
testData :: [String]
|
||||
testData = [ "..##......."
|
||||
, "#...#...#.."
|
||||
, ".#....#..#."
|
||||
, "..#.#...#.#"
|
||||
, ".#...##..#."
|
||||
, "..#.##....."
|
||||
, ".#.#.#....#"
|
||||
, ".#........#"
|
||||
, "#.##...#..."
|
||||
, "#...##....#"
|
||||
, ".#..#...#.#"
|
||||
]
|
||||
|
||||
main :: IO ()
|
||||
main = do
|
||||
putStrLn "Day 3 - Part 1"
|
||||
print testData
|
Loading…
Reference in a new issue