11 lines
300 B
Kotlin
Executable File
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()
|
|
|