Fix weird indent
All checks were successful
Solve / example-action (push) Successful in 3m8s

This commit is contained in:
Logiar 2024-12-12 15:36:47 +01:00
parent f16258eae7
commit 0f2b85f2ad
Signed by: Logiar
SSH Key Fingerprint: SHA256:tq77C31em1ZG4oELIHC3k62wq5UzPSXmhqH8g62whIY

View File

@ -2,7 +2,7 @@
import java.util.Scanner
class TrailHead(private val x: Int, private val y: Int, private val map: Map) {
class TrailHead(private val x: Int, private val y: Int, private val map: Map) {
private val peaks = mutableMapOf<Pair<Int, Int>, Int>()
fun getScore(): Int {
if (this.peaks.isEmpty()) {
@ -28,9 +28,9 @@ import java.util.Scanner
}
}
}
}
class Map(private val grid: List<List<Int>>) {
class Map(private val grid: List<List<Int>>) {
private val trailHeads = mutableListOf<TrailHead>()
init {
@ -66,7 +66,7 @@ import java.util.Scanner
fun getGetRating(): Int {
return trailHeads.fold(0) { acc, trailHead -> acc + trailHead.getGetRating() }
}
}
}
val scanner = Scanner(System.`in`)