This commit is contained in:
parent
c359318235
commit
5fd63ac62f
@ -31,7 +31,6 @@ fun getStonesAfter(input: List<Long>,iterations: Int, cache: PriorityCache<Strin
|
|||||||
var sum = 0L
|
var sum = 0L
|
||||||
for (i in input) {
|
for (i in input) {
|
||||||
sum += getStoneNumber(i, iterations, cache)
|
sum += getStoneNumber(i, iterations, cache)
|
||||||
println("Done with $i")
|
|
||||||
}
|
}
|
||||||
return sum
|
return sum
|
||||||
}
|
}
|
||||||
|
@ -1,18 +1,2 @@
|
|||||||
Done with 2
|
|
||||||
Done with 54
|
|
||||||
Done with 992917
|
|
||||||
Done with 5270417
|
|
||||||
Done with 2514
|
|
||||||
Done with 28561
|
|
||||||
Done with 0
|
|
||||||
Done with 990
|
|
||||||
First part with 25 iterations: 222461
|
First part with 25 iterations: 222461
|
||||||
Done with 2
|
|
||||||
Done with 54
|
|
||||||
Done with 992917
|
|
||||||
Done with 5270417
|
|
||||||
Done with 2514
|
|
||||||
Done with 28561
|
|
||||||
Done with 0
|
|
||||||
Done with 990
|
|
||||||
Second part with 75 iterations: 264350935776416
|
Second part with 75 iterations: 264350935776416
|
||||||
|
Loading…
Reference in New Issue
Block a user