幂的末尾

Luogu
IDLGB2075
Time1000ms
Memory128MB
DifficultyP1
循环结构
幂 $a^b$ 的末 $3$ 位数是多少? ## Input 两个正整数 $a$,$b$。$1 \le a \le 100$,$1 \le b \le 10000$。 ## Output 从高位到低位输出幂的末三位数字,中间无分隔符。若幂本身不足三位,在前面补零。 [samples]
Samples
Input #1
2 3
Output #1
008
Input #2
7 2011
Output #2
743
API Response (JSON)
{
  "problem": {
    "name": "幂的末尾",
    "description": {
      "content": "幂 $a^b$ 的末 $3$ 位数是多少?",
      "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": "LGB2075"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "幂 $a^b$ 的末 $3$ 位数是多少?\n\n## Input\n\n两个正整数 $a$,$b$。$1 \\le a \\le 100$,$1 \\le b \\le 10000$。\n\n## Output\n\n从高位到低位输出幂的末三位数字,中间无分隔符。若幂本身不足三位,在前面补零。\n\n[samples]...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments