POW

AtCoder
IDabc205_c
Time2000ms
Memory256MB
Difficulty
For a base number $X$, the product of multiplying it $Y$ times is called _$X$ to the $Y$\-th power_ and represented as $\text{pow}(X, Y)$. For example, we have $\text{pow}(2,3)=2\times 2\times 2=8$. Given three integers $A$, $B$, and $C$, compare $\text{pow}(A,C)$ and $\text{pow}(B,C)$ to determine which is greater. ## Constraints * $-10^9 \leq A,B \leq 10^9$ * $1 \leq C \leq 10^9$ * All values in input are integers. ## Input Input is given from Standard Input in the following format: $A$ $B$ $C$ [samples]
Samples
Input #1
3 2 4
Output #1
\>

We have $\text{pow}(3,4)=81$ and $\text{pow}(2,4)=16$.
Input #2
\-7 7 2
Output #2
\=

We have $\text{pow}(-7,2)=49$ and $\text{pow}(7,2)=49$.
Input #3
\-8 6 3
Output #3
<

We have $\text{pow}(-8,3)=-512$ and $\text{pow}(6,3)=216$.
API Response (JSON)
{
  "problem": {
    "name": "POW",
    "description": {
      "content": "For a base number $X$, the product of multiplying it $Y$ times is called _$X$ to the $Y$\\-th power_ and represented as $\\text{pow}(X, Y)$. For example, we have $\\text{pow}(2,3)=2\\times 2\\times 2=8$. G",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc205_c"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "For a base number $X$, the product of multiplying it $Y$ times is called _$X$ to the $Y$\\-th power_ and represented as $\\text{pow}(X, Y)$. For example, we have $\\text{pow}(2,3)=2\\times 2\\times 2=8$.\nG...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments