Revert stuff to see if input is fixed.
All checks were successful
Solve / example-action (push) Successful in 47s
All checks were successful
Solve / example-action (push) Successful in 47s
This commit is contained in:
parent
f416a0f07c
commit
c1179a2f11
@ -8,9 +8,6 @@ var safelines = 0
|
|||||||
var dampenedsafelines = 0
|
var dampenedsafelines = 0
|
||||||
while (scanner.hasNextLine()) {
|
while (scanner.hasNextLine()) {
|
||||||
val line = scanner.nextLine()
|
val line = scanner.nextLine()
|
||||||
if (line.isEmpty()) {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
val numbers = line.split(" ").map { it.toInt() }
|
val numbers = line.split(" ").map { it.toInt() }
|
||||||
if (isSafe(numbers)) {
|
if (isSafe(numbers)) {
|
||||||
safelines++
|
safelines++
|
||||||
|
@ -17,9 +17,6 @@ val xMasSearchOffsets = listOf(
|
|||||||
var ycoordinates = mutableListOf<List<String>>()
|
var ycoordinates = mutableListOf<List<String>>()
|
||||||
while (scanner.hasNextLine()) {
|
while (scanner.hasNextLine()) {
|
||||||
val line = scanner.nextLine()
|
val line = scanner.nextLine()
|
||||||
if (line.isEmpty()) {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
val xcoordinates = line.split("").filter { it.isNotEmpty() }
|
val xcoordinates = line.split("").filter { it.isNotEmpty() }
|
||||||
ycoordinates.add(xcoordinates)
|
ycoordinates.add(xcoordinates)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user