#P15632. [2019 KAIST RUN Spring] A Plus Equals B
[2019 KAIST RUN Spring] A Plus Equals B
Problem Description
is a problem used to test one's basic knowledge for competitive programming. Here is yet another boring variation of it.
You have two integers, and . You want to make them equal. To do so, you can perform several steps, where each step is one of the following:
- +=
- +=
- +=
- +=
Unfortunately, is a hard problem for us, so you are allowed to make at most 5000 steps.
Input Format
Two integers are given. ().
Output Format
In the first line, print a single integer () denoting the number of steps.
In next lines, print one of the following strings to denote your desired operation: +=, +=, +=, or +=.
Any sequence of steps that yields the desired result will be judged correct.
2 3
4
B+=B
B+=A
A+=A
A+=A