Forum

Good morning everyone
Gm
The round will begin in a minute or two. Good luck and have fun everyone !
Gl Hf
Gl Hf
no constraints on 100 or 200
Try 100 now again, they're fixed
constraints on 400
ah, I refreshed, they're fixed
Slow down, can't fix everything before you reach the tasks
ahahahaha <3
does "whilst passing K or more checkpoints" imply distinct checkpoints?
on 500
@forelax It does not, check the example
explanation for staminaNeeded on 500?
@spectrra What do you mean ?
Ah just the matrix you mean
Sure, sec
@spectrra staminaNeeded[i][j] is the stamina required to travel from i to j specifically. If j == i, staminaNeeded[i][j] will be '-' since you cannot stay at a checkpoint (you have to keep moving)
thanks
500: test case {"-6","5-"}, 2, the expected output is 55. However, regardless of the pair, we can solve it using a stamina of 17
For example 1->0 we do 1->0->1->0 for a cost of 17
@ReaLNero The output is the sum of all possible routes, so the sum of (0, 0), (0, 1), (1, 0) and (1, 1)
So it would be something like: (0, 0) = 11, (1, 1) = 11, (1, 0) = 17 and (0, 1) = 16
Hence, 55