Introduction - If you have any usage issues, please Google them yourself
The problem of m-point is realized by algorithm
Description of laquo:
Given k positive integers, using the arithmetic operator "+", "-", "*", "/" to connect this k positive integer to make the most
The final count is m.
« programming tasks:
For a given k positive integer, the arithmetic expression of m is given.
« data input:
Input data is given by input.txt. The first row has two positive integers k and m, which means that given k positive integers, and
The final number is m. In the next row, we have k positive integers.
« result output:
Output the arithmetic expression of m to the file output.txt. If there are multiple expressions that satisfy the requirements, just lose
Out of 1 group, each step is separated by a semicolon. If you can't get m, output "No Solution!" .
Example of input file:
Input. TXT output. TXT
5, 125
2, 2, 12, 3, 7
Example of output file:
7 * 3 = 21 21 * 12 = 252 252-2 = 252 250/2 = 125