initial commit

This commit is contained in:
matthias@arch 2022-12-03 01:02:55 +01:00
parent 7674f4ddec
commit 4329ec863a
4 changed files with 2256 additions and 0 deletions

6
1/README.md Normal file
View File

@ -0,0 +1,6 @@
# Day 1
Get maximum number of calories an Elf carries
```shell
awk -f day1.awk input.txt
```

1
1/day1.awk Executable file
View File

@ -0,0 +1 @@
BEGIN{sum=0; max_sum=0} {if (NF != 0) {sum+=$1} else {if (sum > max_sum) {max_sum=sum}; sum=0}} END{print max_sum}

2248
1/input.txt Normal file

File diff suppressed because it is too large Load Diff

1
1/testfile Normal file
View File

@ -0,0 +1 @@
67027