Solution to 44. Not elegant, but it took less time to write and run than solving by hand was taking.
IMO: The best solution is the one you have.