Compare Complex Magnitudes

Python Hard 2 views
Back to Questions

Problem Description

Two complex numbers are provided as a b and c d (a+bi and c+di). Output FIRST if first magnitude is bigger, SECOND if second bigger, else EQUAL.

Input Format

One line: a b c d.

Output Format

One word.

Sample Test Case

Input:
3 4 6 0
Output:
EQUAL

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