【例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

周六1900--循环综合练习

Not Claimed
Status
Done
Problem
63
Open Since
2025-9-13 0:00
Deadline
2025-11-1 23:59
Extension
24 hour(s)