More Dicey operations
Mul 1
1. First find the pair of numbers that has the closest product to 10.
2. If the product is smaller than 10, try both scenarios when you fill these two numbers in the tens digit of the top number and the ones digit of the bottom number.
3. If the product is greater than 10, fill the larger number in the tens digit of the top number and the smaller number in the ones digit of the bottom number.
4. Find the comination that has the product closest to 100.
Mul 2
1. First find the pair of numbers that has the closest product to 10.
2. Then fill them in the tens digits of the two numbers.
3. Then try both scenarios when filling the ones digits of the two numbers with the numbers left.
4. Find the best scenario.
5. In next case, if there are other pairs digits that has product not as close to 10 as the first pair but still quite close to 10. It is worthwhile to try a new pair with product greater than or equal to 10 when the previous best scenario has product smaller than 1000. It is worthwhile to try a new pair with product smaller than 10 if the previous best scenario has product greater than 1000.
6. Find the best scenario out of all the scenarios.
Mul 3 (This is the most complicated case out of all the Dicey operations)
1. Find a pair of numbers that has the closest product to 10. And make them the hundreds digit of the top number and the tenth digit of the bottom number.
2. There is no easy way to figure out the best scenario. But a small trick is that you can also find the combination when the (hundreds digit of the top number * 100 + tens digit of the top number *10) * (tens digit of the bottom number *10) is as close to 10000 as possible.
3. After getting all these candidate combinations, it is time to compare the results of all the candidates and find the best scenario.
4. When there is zero in the available numbers. Please remember that the hundreds digit of the top number is a possible location for the 0. And so is the tens digit of the bottom number.
Div 1
1. Find the pair of numbers that are closest to each other.
2. If there are two digits that are equal, place one in the divisor, and the other in tens digit of the dividend
3. If there are no equal digits, but two are consecutive numbers and both are not zero, place the larger number on the divisor and the smaller number on the tenth digit of the dividend.
4. If none of the previous two scenarios is possible. Try other pairs of numbers that are close to each other and not 0. And place the larger number on the divisor, and the smaller number on the tenth digit of the dividend.
5. If there is one 0, you can only make it part of the dividend.
6. If there two 0s, the only possible best solution for this case is 0.
7. Find the best possible scenario out of the scenarios described above.
Div 2
1. This case is almost the same as Div 1. Follow the same algorithm when selecting the divisor and the hundreds digit of the dividend.
2. When selecting the tenth digit and the ones digit of the dividend, it depends on whether (hundreds digit *100) / divisor currently is smaller or greater than 100. If it is smaller than 100, a two digit number that is the largest (made with the rest of the numbers) is preferable to become the tens and ones digits of the dividend. When it is greater than 100, a two digit number that is the smallest (made with the rest of the numbers) is preferable to become the tens and ones digits of the dividend.
3. Find the best possible scenario of the scenarios described above.