You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
268 B
20 lines
268 B
3 weeks ago
|
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))
|
||
|
}
|