parent
beb4b9ef6c
commit
f416a0f07c
@ -8,6 +8,9 @@ var safelines = 0
|
||||
var dampenedsafelines = 0
|
||||
while (scanner.hasNextLine()) {
|
||||
val line = scanner.nextLine()
|
||||
if (line.isEmpty()) {
|
||||
continue
|
||||
}
|
||||
val numbers = line.split(" ").map { it.toInt() }
|
||||
if (isSafe(numbers)) {
|
||||
safelines++
|
||||
|
Loading…
x
Reference in New Issue
Block a user