Fraction Comparision(分数比较)

链接:https://ac.nowcoder.com/acm/contest/881/J
来源:牛客网
 

Bobo has two fractions xaxa and ybyb. He wants to compare them. Find the result.

输入描述:

The input consists of several test cases and is terminated by end-of-file.

Each test case contains four integers x, a, y, b.

* 0≤x,y≤10180≤x,y≤1018
* 1≤a,b≤1091≤a,b≤109
* There are at most 105105 test cases.

输出描述:

For each test case, print `=` if xa=ybxa=yb. Print `<` if xa` otherwise.

示例1

输入

复制

1 2 1 1
1 1 1 2
1 1 1 1

输出

复制

<
>
=
#include

using namespace std;

void Output(long long a, long long b)
{		
	if(a"<

 

你可能感兴趣的:(牛客竞赛,签到题)