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

This commit is contained in:
Logiar 2024-12-09 08:29:10 +01:00
parent a3195fc0d9
commit 68eec5b3b3
Signed by: Logiar
SSH Key Fingerprint: SHA256:tq77C31em1ZG4oELIHC3k62wq5UzPSXmhqH8g62whIY

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