In the expression TWO * SIX = TWELVE, each letter E, I, L, O, S, T, V, W, and X represents a different digit 0 to 9. Find all three solutions.
IF one adds the stipulation that none of the three words/numbers may start with zero, there are just these three solutions:
218 * 965 = 210370
165 * 972 = 160380
345 * 986 = 340170
If one allows zero at the beginning of the three or six digit numbers, there are five more solutions:
067 * 923 = 061841
043 * 967 = 041581
057 * 962 = 054834
028 * 947 = 026516
038 * 952 = 036176.
One who sets these number/letter substitution problems should always specify whether or not zero may be a leading digit, unless something else in the specs (e.g. "using only digits 1..9" which is not the case here) entails that. Otherwise, this is just a straightforward problem, exec time 2.17 seconds.