Minimum Pluses
Given an equation x=y, for example, 111=12, you need to add pluses inside x to make the equation correct. In our example, 111=12 , we can
add one + to make the equation correct: 1+11=12.
You need to find the minimum number of pluses to add to x to make the equation correct. If there is no answer, print -1
Note the the value of y won't exceed 5000. The numbers in the correct equation may contain arbitrary amounts of leading zeros.
Answers
Answered by
0
Answer:
hello
Explanation:
Answered by
0
answer:
hi how are you doing
Similar questions