add day 1
commit
d68a135177
@ -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
|
Reference in New Issue