Solutions implemented in C++ (-std=c++20
).
Execute run.sh to run all days while reading puzzle inputs from 01.txt
through 25.txt
.
./run.sh
make 01
./01 < 01.txt
--- Day 1: No Time for a Taxicab ---
Part 1: 209
Part 2: 136
Time: 128 μs
--- Day 2: Bathroom Security ---
Part 1: 82958
Part 2: B3DB8
Time: 87 μs
--- Day 3: Squares With Three Sides ---
Part 1: 983
Part 2: 1836
Time: 709 μs
--- Day 4: Security Through Obscurity ---
Part 1: 278221
Part 2: 267
Time: 1094 μs
--- Day 5: How About a Nice Game of Chess? ---
Part 1: 801b56a7
Part 2: 424a0197
Time: 3943098 μs
--- Day 6: Signals and Noise ---
Part 1: dzqckwsd
Part 2: lragovly
Time: 299 μs
--- Day 7: Internet Protocol Version 7 ---
Part 1: 115
Part 2: 231
Time: 8167 μs
--- Day 8: Two-Factor Authentication ---
Part 1: 110
Part 2:
#### ## # # ### # # ## ### # # # ##
# # # # # # # # # # # # # # # #
# # #### # # ## # # # # # # #
# # # # ### # # # ### # # #
# # # # # # # # # # # # # # # #
#### ## # # # # # # ## # #### # ##
Time: 192 μs
--- Day 9: Explosives in Cyberspace ---
Part 1: 102239
Part 2: 10780403063
Time: 691 μs
--- Day 10: Balance Bots ---
Part 1: 47
Part 2: 2666
Time: 619 μs
--- Day 11: Radioisotope Thermoelectric Generators ---
Part 1: 31
Part 2: 55
Time: 10396914 μs
--- Day 12: Leonardo's Monorail ---
Part 1: 318007
Part 2: 9227661
Time: 79631 μs
--- Day 13: A Maze of Twisty Little Cubicles ---
Part 1: 90
Part 2: 135
Time: 201 μs
--- Day 14: One-Time Pad ---
Part 1: 15168
Part 2: 20864
Time: 5969168 μs
--- Day 15: Timing is Everything ---
Part 1: 317371
Part 2: 2080951
Time: 39480 μs
--- Day 16: Dragon Checksum ---
Part 1: 10010100110011100
Part 2: 01100100101101100
Time: 106737 μs
--- Day 17: Two Steps Forward ---
Part 1: DUDRDLRRRD
Part 2: 502
Time: 19130 μs
--- Day 18: Like a Rogue ---
Part 1: 2016
Part 2: 19998750
Time: 218355 μs
--- Day 19: An Elephant Named Joseph ---
Part 1: 1816277
Part 2: 1410967
Time: 10012 μs
--- Day 20: Firewall Rules ---
Part 1: 4793564
Part 2: 146
Time: 2812 μs
--- Day 21: Scrambled Letters and Hash ---
Part 1: baecdfgh
Part 2: cegdahbf
Time: 51963 μs
--- Day 22: Grid Computing ---
Part 1: 990
Part 2: 155
Time: 2749 μs
--- Day 23: Safe Cracking ---
Part 1: 12860
Part 2: 479009420
Time: 69 μs
--- Day 24: Air Duct Spelunking ---
Part 1: 412
Part 2: 664
Time: 211832 μs
--- Day 25: Clock Signal ---
Part 1: 198
Part 2: 0
Time: 26574 μs
Total time: 21090711.00 μs
Solution implementations are released into the public domain under the UNLICENSE license.
Puzzle text and inputs are all the sole property of Advent of Code and may not be replicated or used by any other person or entity without express written consent of Advent of Code.