CF987B.High School: Become Human

普及-

通过率:0%

时间限制:1.00s

内存限制:256MB

AC君温馨提醒

该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。

题目描述

Year 2118. Androids are in mass production for decades now, and they do all the work for humans. But androids have to go to school to be able to solve creative tasks. Just like humans before.

It turns out that high school struggles are not gone. If someone is not like others, he is bullied. Vasya-8800 is an economy-class android which is produced by a little-known company. His design is not perfect, his characteristics also could be better. So he is bullied by other androids.

One of the popular pranks on Vasya is to force him to compare xyx^y with yxy^x. Other androids can do it in milliseconds while Vasya's memory is too small to store such big numbers.

Please help Vasya! Write a fast program to compare xyx^y with yxy^x for Vasya, maybe then other androids will respect him.

公元2118年。安卓机器人(androids)的大规模生产已持续数十年,它们承担了人类的所有工作。但安卓机器人仍需上学,以具备解决创造性任务的能力——正如人类曾经那样。

事实证明,高中时代的烦恼并未消失。如果某人与他人不同,他就会遭到欺凌。Vasya-8800 是一款经济型安卓机器人,由一家名不见经传的小公司生产。他的设计并不完美,各项性能参数也略逊一筹,因此常被其他安卓机器人欺负。

其中一种针对 Vasya 的流行恶作剧,是强迫他比较 xyx^y 与 yxy^x 的大小。其他安卓机器人能在毫秒内完成这一计算,而 Vasya 的内存太小,无法存储如此巨大的数字。

请帮助 Vasya!为他编写一个快速程序来比较 xyx^y 与 yxy^x 的大小。或许这样,其他安卓机器人便会开始尊重他。

输入格式

On the only line of input there are two integers xx and yy (1≤x,y≤1091 \le x, y \le 10^{9}).

输入仅有一行,包含两个整数 xx 和 yy(1≤x,y≤1091 \le x, y \le 10^{9})。

输出格式

If xy<yxx^y \lt y^x, then print '<' (without quotes). If xy>yxx^y \gt y^x, then print '>' (without quotes). If xy=yxx^y = y^x, then print '=' (without quotes).

如果 xy<yxx^y \lt y^x,则输出 <(不含引号)。
如果 xy>yxx^y \gt y^x,则输出 \>(不含引号)。
如果 xy=yxx^y = y^x,则输出 \=(不含引号)。

输入输出样例

  • 输入#1

    5 8

    输出#1

    &gt;
  • 输入#2

    10 3

    输出#2

    &lt;
  • 输入#3

    6 6

    输出#3

    =

说明/提示

In the first example 58=5⋅5⋅5⋅5⋅5⋅5⋅5⋅5=3906255^8 = 5 \cdot 5 \cdot 5 \cdot 5 \cdot 5 \cdot 5 \cdot 5 \cdot 5 = 390625, and 85=8⋅8⋅8⋅8⋅8=327688^5 = 8 \cdot 8 \cdot 8 \cdot 8 \cdot 8 = 32768. So you should print '>'.

In the second example 103=1000<310=5904910^3 = 1000 \lt 3^{10} = 59049.

In the third example 66=46656=666^6 = 46656 = 6^6.

在第一个例子中,58=5⋅5⋅5⋅5⋅5⋅5⋅5⋅5=3906255^8 = 5 \cdot 5 \cdot 5 \cdot 5 \cdot 5 \cdot 5 \cdot 5 \cdot 5 = 390625,而 85=8⋅8⋅8⋅8⋅8=327688^5 = 8 \cdot 8 \cdot 8 \cdot 8 \cdot 8 = 32768。因此你应该输出 '>'。

在第二个例子中,103=1000<310=5904910^3 = 1000 \lt 3^{10} = 59049。

在第三个例子中,66=46656=666^6 = 46656 = 6^6。

输入解题思路,AI测评打分。不知道怎么写?

首页