为了避免溢出, 使用int128即可

使用int128即可
#include <stdio.h>
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main()
{
    __int128_t x, a, y, b;
    ll t;
    while (cin >> t)
    {
        x = t;
        cin >> t;
        a = t;
        cin >> t;
        y = t;
        cin >> t;
        b = t;
        if (x * b > a * y)
            printf(">\n");
        else if
            (x * b < a * y)
            printf("<\n");
        else
            printf("=\n");
    }
    return 0;
}