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

语法组8.10作业——循环结构2

Not Claimed
Status
Done
Problem
14
Open Since
2023-8-10 12:00
Deadline
2023-8-10 17:00
Extension
0 hour(s)