3 ms·
Some clues to make it faster: w is divisible by 5. 5m=100-3w. So, w ∈ {5,10,15,20,25,30}, m = 20 - 3w/5, c=100-m-w. It seems this gives all answers.
by yobbo 2y ago
Some clues to make it faster: w is divisible by 5. 5m=100-3w.
So, w ∈ {5,10,15,20,25,30}, m = 20 - 3w/5, c=100-m-w.
It seems this gives all answers.