aoc_2024/day09.kts
Logiar 68eec5b3b3
All checks were successful
Solve / example-action (push) Successful in 2m48s
Prepared Day 9 files.
2024-12-09 08:29:10 +01:00

11 lines
300 B
Kotlin
Executable File

#!/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()