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 xy
. 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 xy
with yxfor Vasya, maybe then other androids will respect him.
On the only line of input there are two integers x
).
If xy<yx
, then print '=' (without quotes).
5 8
>
10 3
<
6 6
=
In the first example 58=5⋅5⋅5⋅5⋅5⋅5⋅5⋅5=390625
. So you should print '>'.
In the second example 103=1000<310=59049
.
In the third example 66=46656=66
.题意
判断x^y和y^x大小
思路
打表找规律
在2118年,为帮助被欺凌的经济型机器人Vasya-8800解决学校难题,需编写快速程序比较两个数的幂次大小。输入两个整数x和y,输出x^y与y^x的大小关系。
1340

被折叠的 条评论
为什么被折叠?



