Submit solution
Points:
10 (partial)
Time limit:
1.0s
Memory limit:
32M
Authors:
Problem type
Allowed languages
Python
Problem Statement
You are given two complex number and you tell how the two numbers are related.
Suppose you have two complex numbers , ,
- is defined to be and
- is defined to be and
- is defined to be and
- is defined to be either and or and
- similarly for
- All other cases are considered
Input Specification
The first line of the input gives the number of test cases, , test cases follow. Each test case consists of a line. The line contains two complex numbers seperated by a space.
Limits
Memory limits: 32MB.
Time limits: 1 second.
Test Set 1
Sample Case.
Test Set 2
Test Set 3
Test Set 4
Output Specification
For each test case, output one line containing Case #x: y R z
, where is the case number(starting from 1), is the first complex number, is the second complex number. is the relationship between and
Sample Input
8
2+3j 3+4j
2+3j 2+4j
2+3j 4+2j
2+3j 2+3j
3+5j 2+3j
3+5j 2+5j
0+4j 0+4j
5 3
Sample Output
Case #1: (2+3j) < (3+4j)
Case #2: (2+3j) <= (2+4j)
Case #3: (2+3j) != (4+2j)
Case #4: (2+3j) == (2+3j)
Case #5: (3+5j) > (2+3j)
Case #6: (3+5j) >= (2+5j)
Case #7: 4j == 4j
Case #8: (5+0j) >= (3+0j)
Hint
complex
if-else
Comments