【例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.
说明
幂的末位数是多少?
输入格式
两个正整数,。(,)
输出格式
从高位到低位输出幂的末三位数字,中间无分隔符。若幂本身不足三位,在前面补零。
样例
7 2011
743
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.
幂ab的末3位数是多少?
两个正整数a,b。(1≤a≤100,1≤b≤10000)
从高位到低位输出幂的末三位数字,中间无分隔符。若幂本身不足三位,在前面补零。
7 2011
743
By signing up a 战码少年-战码青少年编程(专业信息学奥赛编程训练) universal account, you can submit code and join discussions in all online judging services provided by us.