#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

初一1、2基础班第9周作业——循环结构

Not Claimed
Status
Done
Problem
6
Open Since
2023-10-31 16:05
Deadline
2023-11-7 16:55
Extension
0 hour(s)