QFNU 10-09 19 Training

E - High School: Become Human

#include<bits/stdc++.h>
#define ll long long
#define speed_up ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
using namespace std;
/*
取对数
ln5的8次方 ln8的5次方
8ln5       5ln8
8/ln8      5/ln5
*/
int main()
{
    speed_up;
    ll int x,y;
    cin>>x>>y;
    double s1=0,s2=0;
    s1=y/log(y);
    s2=x/log(x);
    if(x==y)cout<<"="<<endl;//特判x=y的情况
    else if(x==1)cout<<"<"<<endl;//特判1的情况
    else if(y==1)cout<<">"<<endl;
    else
    {
        if(s1==s2)cout<<"="<<endl;
        else if(s1>s2)cout<<">"<<endl;
        else cout<<"<"<<endl;
    }
}

posted @ 2020-10-18 21:04  SyrupWRLD  阅读(69)  评论(0)    收藏  举报