7 ms·
is there a need for jar2:3 at line 12 ?
by ciju 16y ago
is there a need for jar2:3 at line 12 ?
- Natsu 16y agoDoesn't seem like there is. Also, is my count wrong, or does that only produce 31 white balls? It's still more than the 29, though.
- MtL 16y agoWe have 5 from the start. Start producing 4 more (2 jars) at timestep 1. Start producing 4 more at timestep 6. Start producing 22 more at timestep 12. 22 + 4 + 4 + 5 = 35
- Natsu 16y agoOh, I did it by hand (and I was checking all the balls). I just missed one of the +4s somehow. I wonder how efficient people can make this. I've envisioned all kinds of test cases that crank up the branching factor, require that you find solutions even if you have to trade away white balls for them and other such things. Just because he made them positive integers doesn't mean that there are no ways to punish solutions that won't scale or those that don't always find optimal solutions.