diff --git a/day09.kts b/day09.kts new file mode 100755 index 0000000..f2c39a7 --- /dev/null +++ b/day09.kts @@ -0,0 +1,10 @@ +#!/usr/bin/env kotlin +import java.lang.RuntimeException +import java.util.Scanner + +val scanner = Scanner(System.`in`) +if (!scanner.hasNext()) { + throw RuntimeException("No input given.") +} +val fileSystem = scanner.nextLine().split("").filter { it.isNotEmpty() }.map { it.toInt() }.toMutableList() +