add day 1

main
lub 2 years ago
commit d68a135177

2250
1/input

File diff suppressed because it is too large Load Diff

@ -0,0 +1,6 @@
(Get-Content input -Raw).Split("`n`n")
| ForEach-Object {
($_.Split("`n") | Measure-Object -Sum).Sum
}
| Sort-Object -Descending
| Select-Object -First 1

@ -0,0 +1,8 @@
(Get-Content input -Raw).Split("`n`n")
| ForEach-Object {
($_.Split("`n") | Measure-Object -Sum).Sum
}
| Sort-Object -Descending
| Select-Object -First 3
| Measure-Object -Sum
| Select-Object -ExpandProperty Sum