Skip to content

Latest commit

 

History

History
83 lines (69 loc) · 12.1 KB

2020.md

File metadata and controls

83 lines (69 loc) · 12.1 KB

2020

badge

  • https://adventofcode.com/2020

  • profiling with hyperfine - brew install hyperfine:

    • hyperfine -r 10 'python 2020/01.py'
    • python -m cProfile 2020/01.py
    • time python 2020/01.py
  • hyperfine --warmup 3 -r 10 'find 2020 -type f -regex ".*/[0-9]*\.py" | sort -n | xargs python ' | tee 2020/benchmark.txt

  • bin/run-all-solutions.py --dir 2020 --write

Day Name Solution CI Benchmark
01 Report Repair py badge
02 Password Philosophy py badge
03 Toboggan Trajectory py badge
04 Passport Processing py badge
05 Binary Boarding py badge
06 Custom Customs py badge
07 Handy Haversacks py badge
08 Handheld Halting py badge
09 Encoding Error py badge
10 Adapter Array py badge
11 Seating System py badge
12 Rain Risk py badge
13 Shuttle Search py badge
14 Docking Data py badge
15 Rambunctious Recitation py badge
16 Ticket Translation py badge
17 Conway Cubes py** badge
18 Operation Order py badge
19 Monster Messages py* badge
20 Jurassic Jigsaw py** badge
21 Allergen Assessment py badge
22 Crab Combat py badge
23 Crab Cups py* badge
24 Lobby Layout py badge
25 Combo Breaker py
--- ------ --------- ---
all AoC 20 txt M1 - 30.996 s, CI - badge
  • or ** - external solution adopted

tools

download input of last day:

  • install:
go install github.com/GreenLightning/advent-of-code-downloader/aocdl@latest
cp $(go env GOPATH)/bin/aocdl /usr/local/bin/
echo '{"session-cookie": "xxx"}' > $HOME/.aocdlconfig
echo "
#!/usr/bin/env bash
aocdl --force
pbcopy <input.txt
" > get.sh
chmod +x get.sh
  • download to input.txt and copy to clipboard:
./get.sh

External help