you get the 10 10 scores and then add the score for the next round for each that would total 10*9 and then there was a 9 for the 3rd ball for the 10th round. It all adds up to 100 + 90 + 9 = 199
It was great solving this! But I think that the description of what happens when you level up with more than exact 10 lines. There is nothing explaining that the remainder should remains, instead of going to zero.
I don't understand the the 190 test case. It has 10 [9,1] scores, so it is 10 consecutive spares. The first one is the only one that is not doubled, so it sums up to 190. But the extra ball is a 9. Isn't the answer 199 instead of 190 for this specific case? (I was doing it in Python)
I am still confused too like vmunhoz is.
you get the 10 10 scores and then add the score for the next round for each that would total 10*9 and then there was a 9 for the 3rd ball for the 10th round. It all adds up to 100 + 90 + 9 = 199
Thank you for your comment!
This should have been a test of mindfulness. But I did not want to embarrass anyone, so I updated the description.
Note that it has only 10 frames...
first 9 frames can contain 1 or 2 ball and last one contain 2 or 3 balls so code accordingly..
and dont raise issue...read description carefully...
let me know if you are not clear
It was great solving this! But I think that the description of what happens when you level up with more than exact 10 lines. There is nothing explaining that the remainder should remains, instead of going to zero.
I don't understand the the 190 test case. It has 10 [9,1] scores, so it is 10 consecutive spares. The first one is the only one that is not doubled, so it sums up to 190. But the extra ball is a 9. Isn't the answer 199 instead of 190 for this specific case? (I was doing it in Python)