This commit is contained in:
parent
a3195fc0d9
commit
68eec5b3b3
10
day09.kts
Executable file
10
day09.kts
Executable 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()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user