帮忙求解一条题目!跪谢啊!
a multiplication (4 marks). Consider a multiplication of the form* * *
x * * *
-------
* * * *
* * * *
* * * *
----------------
* * * * * *
Each star stands for a digit, with the leftmost star on each line with stars standing for a nonzero
digit. This multiplication has 3 partial products (the three lines between the two horizontal bars).
Give all solutions such that:
all partial products are made up of the same digits (a given digit occurs in every partial
product or in none of them);
the rst and second partial products are dierent;
the orderings of digits in the second and third partial products are inverse of each other (such
as 1424 and 4241);
the third partial product is the sum of the rst two partial products.
The output of your program, should be lines of the form
... x ... = ......, with ...., .... and .... as partial products, is a solution.