complexno


Submit solution

Points: 10 (partial)
Time limit: 10.0s
Memory limit: 64M

Problem type
Allowed languages
Python

Problem Definition

Given two complex numbers, you have to print the result of their addition, subtraction, multiplication, and modulus operation on the first complex number.

Note:Modulus of a complex number is the square root of the sum of squares of real and imaginary parts.

Input

2 1

5 6

Output

7.00 + 7.00j

-3.00-5.00j

4.00+17.00j

2.24+0.00j


Comments

There are no comments at the moment.