6
void helper(vector<int> &bob, int i, vector<int> &alice, int remarrows, int score) {7
if (i == -1 or remarrows <= 0) {8
if (score >= maxscore) {15
helper(bob, i - 1, alice, remarrows, score);16
if (remarrows > alice[i]) {17
bob[i] = alice[i] + 1;18
remarrows -= (alice[i] + 1);20
helper(bob, i - 1, alice, remarrows, score);25
vector<int> maximumBobPoints(int numArrows, vector<int> &aliceArrows) {26
vector<int> bob(12, 0);28
helper(bob, 11, aliceArrows, numArrows, 0);31
for (int a : ans) arrows_used += a;32
if (arrows_used < numArrows) ans[0] += (numArrows - arrows_used);