-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.lean
37 lines (25 loc) · 879 Bytes
/
template.lean
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import Advents.Utils
open Lean
/-- `input` is the location of the file with the data for the problem. -/
def input : System.FilePath := "Advents/day<newDay>.input"
/-!
# Question 1
-/
--#eval do IO.println (← IO.FS.readFile input)
/-- `test` is the test string for the problem. -/
def test := ""
/-- `atest` is the test string for the problem, split into rows. -/
def atest := (test.splitOn "\n").toArray
/-- `part1 dat` takes as input the input of the problem and returns the solution to part 1. -/
def part1 (dat : Array String) : Nat := sorry
--def part1 (dat : String) : Nat := sorry
--#assert part1 atest == ???
--solve 1
/-!
# Question 2
-/
/-- `part2 dat` takes as input the input of the problem and returns the solution to part 2. -/
def part2 (dat : Array String) : Nat := sorry
--def part2 (dat : String) : Nat :=
--#assert part2 atest == ???
--solve 2