60分求助
查看原帖
60分求助
1153724
lsy18653707830楼主2024/7/31 13:30
#include<iostream>
using namespace std;
int main() {
	long long a,b,c=1;
	cin>>a>>b;
	for(int i=1; i<=b; i++) c*=a;
	if(c/100%10==0&&c/10%10==0) cout<<0<<0<<c%10;
	else if(c/100%10==0) cout<<0<<c/10%10<<c%10;
	else cout<<c/100%10<<c/10%10<<c%10;
	return 0;
}
2024/7/31 13:30
加载中...