Added solutions for 16th day: Packet Decoder
This commit is contained in:
parent
07442255f6
commit
f169c1bbd9
14 changed files with 279 additions and 0 deletions
16
2021/16/second.go
Normal file
16
2021/16/second.go
Normal file
|
@ -0,0 +1,16 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"bufio"
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"git.adyxax.org/aoc/2021/16/bits"
|
||||
)
|
||||
|
||||
func main() {
|
||||
scanner := bits.NewScanner(bufio.NewReader(os.Stdin))
|
||||
b := scanner.Scan()
|
||||
fmt.Println(b)
|
||||
fmt.Println(b.Value)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue