PROGRAMMING:The operation of complex number and the maximum value
This topic requires to read in four integers a, B, C, D, construct two complex numbers: a + bi and C + Di according to these four integers, then output them, and output their sum, difference, product, quotient and the largest of the above results (real and imaginary parts are operated within the range of integers).
The comparison of the size of two complex numbers is as follows: first, it is larger or smaller than the real part (that is, the whole complex number is considered larger or smaller). When the real part is the same, the size of the imaginary part is compared. If the imaginary part is also the same, the two complex numbers are considered equal.
We also need to pay attention to the output habits of complex numbers: 0 + 0I -- > {0}, 0-8i -- > {- 8i}, - 3 + 0I -- > {- 3}, 3 + - 4I -- > {3-4i}
###Input format:
Enter four integers separated by spaces. Make sure that the second complex number entered is not zero.
###Output format:
Output seven complex numbers in seven lines, respectively: the sum, difference, product, quotient of the two complex numbers and the maximum value of the four operations.
###Input example:
```in
3 -4 -3 4
```
###Output example:
The corresponding output is given here. For example:
```out
{3-4i}
{-3+4i}
{0}
{6-8i}
{7+24i}
{-1}
{7+24i}
```
answer:If there is no answer, please comment
The comparison of the size of two complex numbers is as follows: first, it is larger or smaller than the real part (that is, the whole complex number is considered larger or smaller). When the real part is the same, the size of the imaginary part is compared. If the imaginary part is also the same, the two complex numbers are considered equal.
We also need to pay attention to the output habits of complex numbers: 0 + 0I -- > {0}, 0-8i -- > {- 8i}, - 3 + 0I -- > {- 3}, 3 + - 4I -- > {3-4i}
###Input format:
Enter four integers separated by spaces. Make sure that the second complex number entered is not zero.
###Output format:
Output seven complex numbers in seven lines, respectively: the sum, difference, product, quotient of the two complex numbers and the maximum value of the four operations.
###Input example:
```in
3 -4 -3 4
```
###Output example:
The corresponding output is given here. For example:
```out
{3-4i}
{-3+4i}
{0}
{6-8i}
{7+24i}
{-1}
{7+24i}
```
answer:If there is no answer, please comment