11 lines
300 B
Plaintext
11 lines
300 B
Plaintext
|
#!/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()
|
||
|
|