advent-of-code/2021/eight.nim
2021-12-08 09:24:15 -06:00

13 lines
285 B
Nim

import ./common, std/[strutils, sequtils, strformat, sugar]
proc p1(c: string): int =
return 26
proc p2(c: string): int =
result = 0
doDay(8, (n) => n.loadInputText(),
p1,
p2,
"acedgfb cdfbe gcdfa fbcad dab cefabd cdfgeb eafb cagedb ab | cdfeb fcadb cdfeb cdbaf", 26, -1)