Score : 300 points
问题描述
对于一个基数 X,将它连乘 Y 次得到的积被称为 X 的 Y 次幂,并表示为 pow(X,Y)。例如,我们有 pow(2,3)=2×2×2=8。
给定三个整数 A、B 和 C,比较 pow(A,C) 和 pow(B,C),以确定哪一个较大。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
For a base number X, the product of multiplying it Y times is called X to the Y-th power and represented as pow(X,Y). For example, we have pow(2,3)=2×2×2=8.
Given three integers A, B, and C, compare pow(A,C) and pow(B,C) to determine which is greater.
Constraints
- −109≤A,B≤109
- 1≤C≤109
- All values in input are integers.
Input is given from Standard Input in the following format:
A B C
Output
If pow(A,C)<pow(B,C), print <
; if pow(A,C)>pow(B,C), print >
; if pow(A,C)=pow(B,C), print =
.
3 2 4
Sample Output 1
\>
We have pow(3,4)=81 and pow(2,4)=16.
-7 7 2
Sample Output 2
\=
We have pow(−7,2)=49 and pow(7,2)=49.
-8 6 3
Sample Output 3
<
We have pow(−8,3)=−512 and pow(6,3)=216.
update @ 2024/3/10 09:18:19