Alexander Avery
3 weeks ago
1 changed files with 19 additions and 0 deletions
@ -0,0 +1,19 @@ |
|||||
|
package main |
||||
|
|
||||
|
import ( |
||||
|
"adventoc/2024" |
||||
|
"bytes" |
||||
|
"fmt" |
||||
|
"io" |
||||
|
"os" |
||||
|
) |
||||
|
|
||||
|
func main() { |
||||
|
buf := new(bytes.Buffer) |
||||
|
tee := io.TeeReader(os.Stdin, buf) |
||||
|
|
||||
|
puzzle := adventoc2024.Day2{} |
||||
|
|
||||
|
fmt.Println("Part 1:", puzzle.Part1(tee)) |
||||
|
fmt.Println("Part 2:", puzzle.Part2(buf)) |
||||
|
} |
Loading…
Reference in new issue