Problem description:
Find all formulas of the form abc*de (a three-digit number multiplied by a two-digit number) such that, in the complete long-multiplication layout, every digit belongs to a given digit set. Input the digit set (with no spaces between adjacent digits), and output all the layouts. Each layout must be preceded by a number and followed by a blank line. Finally, output the total number of solutions. See the sample output for the exact format (to make it easier to read, spaces in the layout are shown as dots, but your program should output spaces, not dots).
| |
Let me add a note on what this problem is actually trying to say
and I’m also still thinking about using a Markdown editor
for writing this kind of article
This problem asks for all
formulas of the form abc*de, a three-digit number times a two-digit number,
where every number used in the long-multiplication process
is in the set “s”
and to output such layouts plus how many there are in total
| |
Algorithm Contest Entry Classic (2nd Edition), P41