Complex Number Multiply

Python Medium 3 views
Back to Questions

Problem Description

Read a b c d, treat them as complex numbers (a+bi) and (c+di). Multiply them and output real and imag parts.

Input Format

One line: a b c d.

Output Format

One line: real imag.

Sample Test Case

Input:
1 2 3 4
Output:
-5 10

Constraints

Values fit in 64-bit.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next