#D. 【例29.2】 幂的末尾

    Type: RemoteJudge 1000ms 128MiB

【例29.2】 幂的末尾

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

说明

aba^b的末33位数是多少?

输入格式

两个正整数aabb。(1a1001≤a≤1001b100001≤b≤10000

输出格式

从高位到低位输出幂的末三位数字,中间无分隔符。若幂本身不足三位,在前面补零。

样例

7 2011
743

4月21日15:40班C++作业

Not Claimed
Status
Done
Problem
4
Open Since
2024-4-21 0:00
Deadline
2024-4-29 23:59
Extension
24 hour(s)