#include<stdio.h>
int main()
{
int A,B,result;
while(scanf("%d%d",&A,&B)!=EOF&&A!=0||B!=0)
{
result=1;
for(int i=1;i<=B;i++)
{
result=result*A%1000;
}
printf("%d\n",result);
}
return 0;
}
01-17
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交