aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--2020/one.nim3
-rw-r--r--2020/three.nim1
-rw-r--r--2020/two.nim1
-rw-r--r--2020/twoFancy.nim1
4 files changed, 5 insertions, 1 deletions
diff --git a/2020/one.nim b/2020/one.nim
index adc7e86..f498907 100644
--- a/2020/one.nim
+++ b/2020/one.nim
@@ -1,6 +1,7 @@
+# Day One: Report Repair
import os, strutils
-let input = paramStr(1)
+let input: string = paramStr(1)
var done: bool = false
for one in lines(input):
diff --git a/2020/three.nim b/2020/three.nim
index 8455783..f10bd0e 100644
--- a/2020/three.nim
+++ b/2020/three.nim
@@ -1,3 +1,4 @@
+# Day Three: Toboggan Trajectory
import os, strutils, std/enumerate
let input: string = paramStr(1)
diff --git a/2020/two.nim b/2020/two.nim
index a2234ab..74bb170 100644
--- a/2020/two.nim
+++ b/2020/two.nim
@@ -1,3 +1,4 @@
+# Day Two: Password Philosophy
import os, strutils
let input: string = paramStr(1)
diff --git a/2020/twoFancy.nim b/2020/twoFancy.nim
index a16ef06..441651a 100644
--- a/2020/twoFancy.nim
+++ b/2020/twoFancy.nim
@@ -1,3 +1,4 @@
+# Day Two: Password Philosophy
import os, strutils, terminal
let input = paramStr(1)