advent-of-code/README.md

33 lines
821 B
Markdown
Raw Normal View History

2021-12-01 13:13:23 +00:00
# awk aoc 2021
2021-12-02 13:48:28 +00:00
got caught in the thrill of wanting to solve the puzzles fast :)
[advent of code 2021: awk](https://compudanzas.net/advent_of_code_2021.html)
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](https://adventofcode.com/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
```
awk -c -f 01.awk inputfile
```
2021-12-01 13:13:23 +00:00
# stats
```
-------Part 1-------- -------Part 2--------
Day Time Rank Score Time Rank Score
2021-12-02 05:12:41 +00:00
2 00:02:08 324 0 00:06:30 1842 0
2021-12-01 13:13:23 +00:00
1 00:03:11 1556 0 00:08:18 1774 0
```