for(i=1;i<=B;i++) { puls=puls*A; puls=puls%1000; }
假期编程练习——一个数的n次幂取余
原文:https://www.cnblogs.com/ping2yingshi/p/12221251.html