Compare Fractions a/b and c/d

Computer Mathematics Hard 3 views
Back to Questions

Problem Description

Compare two fractions without floating point. Print , or =.

Input Format

Four integers a b c d.

Output Format

One char: < or > or =.

Sample Test Case

Input:
1 3 2 6
Output:
=

Constraints

b,d != 0, values fit in 64-bit

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next