#166. 连乘取余问题
连乘取余问题
Description
求x个2011 相乘之后,最后y位的数字是多少?
x<=10^6, 1<=y<=5
Input Format
两个整数x和y。
Output Format
一个整数,表示x个2011 相乘之后,最后y位的数字。
Sample
input
1 2
output
11
Hint
时间限制:
空间限制:
求x个2011 相乘之后,最后y位的数字是多少?
x<=10^6, 1<=y<=5
两个整数x和y。
一个整数,表示x个2011 相乘之后,最后y位的数字。
input
1 2
output
11
时间限制:1s
空间限制:256MB
By signing up a code-fans universal account, you can submit code and join discussions in all online judging services provided by us.