乘方计算

Luogu
IDLGB2062
Time1000ms
Memory128MB
DifficultyP1
循环结构
给出一个整数 $a$ 和一个正整数 $n$,求乘方 $a^n$。 ## Input 一行,包含两个整数 $a$ 和 $n$。$-1000000 \le a \le 1000000$,$1 \le n \le 10000$。 ## Output 一个整数,即乘方结果。题目保证最终结果的绝对值不超过 $1000000$。 [samples]
Samples
Input #1
2 3
Output #1
8
API Response (JSON)
{
  "problem": {
    "name": "乘方计算",
    "description": {
      "content": "给出一个整数 $a$ 和一个正整数 $n$,求乘方 $a^n$。",
      "description_type": "Markdown"
    },
    "platform": "Luogu",
    "limit": {
      "time_limit": 1000,
      "memory_limit": 131072
    },
    "difficulty": {
      "LuoguStyle": "P1"
    },
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "LGB2062"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "给出一个整数 $a$ 和一个正整数 $n$,求乘方 $a^n$。\n\n## Input\n\n一行,包含两个整数 $a$ 和 $n$。$-1000000 \\le a \\le 1000000$,$1 \\le n \\le 10000$。\n\n## Output\n\n一个整数,即乘方结果。题目保证最终结果的绝对值不超过 $1000000$。\n\n[samples]...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments