my advent of code solutions since 2021
Go to file
sejo 275925c251 day 18, almost done 2021-12-18 22:34:22 -06:00
01 set up directories 2021-12-02 07:50:11 -06:00
02 set up directories 2021-12-02 07:50:11 -06:00
03 more clean up 2021-12-03 22:01:53 -06:00
04 removed 2nd part from makefile (both are in the same file) 2021-12-04 21:29:36 -06:00
05 even nicer day 5, pt 2 2021-12-04 23:56:32 -06:00
06 corrected typo 2021-12-06 18:55:19 -06:00
07 day 7, more compact 2021-12-07 13:34:30 -06:00
08 day 8! 2021-12-08 00:02:54 -06:00
09 corrected to use FS 2021-12-09 00:06:03 -06:00
10 day 10! 2021-12-09 23:30:04 -06:00
11 day 11, parts 1 & 2, cleaner 2021-12-11 12:45:02 -06:00
12 removed test files 2021-12-12 01:20:39 -06:00
13 stats day 13 (started late) 2021-12-13 01:24:55 -06:00
14 14_2 solves part 1 and 2 2021-12-14 00:19:39 -06:00
15 day 15, part 2 - thanks again alderwick! 2021-12-15 16:31:38 -06:00
16 part 1 and 2 in the same file 2021-12-16 01:24:20 -06:00
17 day 17 part 2! 2021-12-16 23:58:27 -06:00
18 day 18, almost done 2021-12-18 22:34:22 -06:00
README.md stats day 17 2021-12-16 23:59:10 -06:00

README.md

awk aoc 2021

got caught in the thrill of wanting to solve the puzzles fast :)

advent of code 2021: awk

the NUM.awk and NUM_2.awk files are the original ones written under pressure. the *_new.awk files are improved versions written afterwards.

you can see the puzzles and get the input files at advent of code 2021

run

to run a program, e.g. 01.awk:

awk -f 01.awk inputfile

if using gawk, you should be able to use compatibility/traditional mode (except for day 03, and 09)

awk -c -f 01.awk inputfile

stats

      -------Part 1--------   -------Part 2--------
Day       Time  Rank  Score       Time  Rank  Score
 17   00:41:03  2839      0   00:56:57  2841      0
 16   00:34:15   550      0   02:21:09  3657      0
 15   16:52:00 24420      0   17:30:02 20656      0 --- thanks alderwick for your help!
 14   00:27:53  4878      0   01:07:47  3311      0
 13   02:02:33  9507      0   02:19:53  9225      0 --- started late
 12   01:57:59  7241      0   02:16:49  6447      0
 11   00:46:21  4284      0   00:49:55  4145      0
 10   00:19:04  4202      0   00:28:32  3347      0
  9   00:12:52  2598      0   00:55:08  4504      0
  8   00:06:26   580      0   01:02:03  2196      0
  7   00:06:50  2657      0   00:12:29  2665      0
  6   00:10:35  3339      0   00:36:30  4445      0
  5   00:08:39   464      0   00:19:44   917      0
  4   00:42:46  4241      0   00:45:01  3008      0
  3   00:12:37  4213      0   00:38:29  3758      0
  2   00:02:08   324      0   00:06:30  1842      0
  1   00:03:11  1556      0   00:08:18  1774      0