【题目描述】
【输入】
【输出】
【输入样例】
【输出样例】
#include<iostream> using namespace std; int main(){ int a,b,x,y,z,p=1; cin>>a>>b; for(int i=1;i<=b;++i){ p*=a; p%=1000; z=p%10; y=(p/10)%10; x=(p/100)%10; } cout<<x<<y<<z; return 0; }//OK
Powered by 孙会中 @ 2024-2026【 www.sunhuizhong.cn 】All rights reserved
访问统计:387660 本月:27 上月:1061 今日:6 昨日:3 当前在线:1人