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 plus "11+1=12"
and the equation becomes correct. 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 that the value of y won't exceed 5000. The numbers in the corrected equation may
contain arbitrary amounts of leading zeros.
Input Format
The first line contains a string, A as described in the problem statement.
Constraints
1 <= len(A) <= 10^3
Explanation
Sample Input
Sample Output
1
23=5
It can be accomplished with
only one +" by doing
"2+3=5":
Answers
Answered by
0
Answer:
can u please explain me in short
Answered by
0
Answer:
if you can send the pic so it's better to understand
Similar questions