| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 1024 MB | 21 | 15 | 15 | 71.429% |
Given four integers, insert between them the signs +, -, *, or = to obtain a valid equality.
The only line of input contains four integers separated by question marks (?). The integers are non-negative and no longer than four digits each.
The only line of output should contain the equality where one of the question marks is replaced by the equals sign and each of the others by one of the arithmetic operations +, -, or *. If there are several possible solutions, output any one of them. If there are no solutions, output the text EI SAA.
9?7?9?9
EI SAA
11?22?33?44
11=22+33-44
0?0?0?0
0+0=0+0