I hit this issue as well. After a couple dozen attempts I managed to pass all the tests anyway.
Afterwards I tried out the reference solution against my own, and the reference certainly has some bug in it. For example, reference::elder_age(3,3,1,100) returns 5 instead of the correct 6 (easily verified by hand).
Fixed
I hit this issue as well. After a couple dozen attempts I managed to pass all the tests anyway.
Afterwards I tried out the reference solution against my own, and the reference certainly has some bug in it. For example, reference::elder_age(3,3,1,100) returns 5 instead of the correct 6 (easily verified by hand).
+1 Had the same issue, verified with brute force algorithm. Just kept submitting until it passed :v
This comment is hidden because it contains spoiler information about the solution