Prepared Day 9 files.
All checks were successful
Solve / example-action (push) Successful in 2m48s

This commit is contained in:
2024-12-09 08:29:10 +01:00
parent a3195fc0d9
commit 68eec5b3b3

10
day09.kts Executable file
View File

@@ -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()