impl day 2 + simplification, woops implemented the wrong pattern checker

This commit is contained in:
Leonard Lorenz 2025-12-02 23:04:26 +01:00
parent f33dda8916
commit 4fba52d596
4 changed files with 50 additions and 10 deletions

View file

@ -1,5 +1,6 @@
day=$(date +%-e)
day_zero=$(date +%0e)
year=$(date +%Y)
session=$(cat .sessioncookie)
mkdir -p input
curl -b "session=${session}" -o "./input/${day_zero}.txt" "https://adventofcode.com/2024/day/${day}/input"
curl -b "session=${session}" -o "./input/${day_zero}.txt" "https://adventofcode.com/${year}/day/${day}/input"