by rebix
METRIC
Rate > Cost > Instructions
REAGENT
Tharge Fragment
PRODUCTS
Elemental Gold
Elemental Salt
NOTES
Your solution must be able to solve the puzzle regardless of what rank of metal is used in the input.
There are six cases that need to be considered. The only variable is the rank of the metal. So the input diamond can be lead-salt, tin-salt, iron-salt, etc. Each individual case always uses the same input.
The metric is measured by taking the average score across all six cases. This is relevant for the rate primary.
Output conditionals are allowed
Update: The input has been nerfed and one of the gold outputs removed. There was too much Tharge.
download: c211220961752752.puzzle (where do i put this?)