#abc205c. C - POW

C - POW

Score : 300300 points

问题描述

对于一个基数 XX,将它连乘 YY 次得到的积被称为 XXYY 次幂,并表示为 pow(X,Y)\text{pow}(X, Y)。例如,我们有 pow(2,3)=2×2×2=8\text{pow}(2,3)=2\times 2\times 2=8

给定三个整数 AABBCC,比较 pow(A,C)\text{pow}(A,C)pow(B,C)\text{pow}(B,C),以确定哪一个较大。

以上为通义千问 qwen-max 翻译,仅供参考。

Problem Statement

For a base number XX, the product of multiplying it YY times is called XX to the YY-th power and represented as pow(X,Y)\text{pow}(X, Y). For example, we have pow(2,3)=2×2×2=8\text{pow}(2,3)=2\times 2\times 2=8.

Given three integers AA, BB, and CC, compare pow(A,C)\text{pow}(A,C) and pow(B,C)\text{pow}(B,C) to determine which is greater.

Constraints

  • 109A,B109-10^9 \leq A,B \leq 10^9
  • 1C1091 \leq C \leq 10^9
  • All values in input are integers.

Input

Input is given from Standard Input in the following format:

AA BB CC

Output

If pow(A,C)<pow(B,C)\text{pow}(A,C)< \text{pow}(B,C), print <; if pow(A,C)>pow(B,C)\text{pow}(A,C)>\text{pow}(B,C), print >; if pow(A,C)=pow(B,C)\text{pow}(A,C)=\text{pow}(B,C), print =.

Sample Input 1

3 2 4

Sample Output 1

\>

We have pow(3,4)=81\text{pow}(3,4)=81 and pow(2,4)=16\text{pow}(2,4)=16.

Sample Input 2

-7 7 2

Sample Output 2

\=

We have pow(7,2)=49\text{pow}(-7,2)=49 and pow(7,2)=49\text{pow}(7,2)=49.

Sample Input 3

-8 6 3

Sample Output 3

<

We have pow(8,3)=512\text{pow}(-8,3)=-512 and pow(6,3)=216\text{pow}(6,3)=216.

update @ 2024/3/10 09:18:19