20分求助
查看原帖
20分求助
1017221
GipsyAvenger1楼主2023/12/17 17:34
#include<bits/stdc++.h>
using namespace std;
int main(){
	int a,b,c;
	cin>>a>>b;
    for(int o=1;o<=b;o++){
        a*=a;
    }
    c=b%=1000;
    if(c<100&&c>10)
        cout<<0<<c;
    if(c<10)
        cout<<0<<0<<c;
    else
        cout<<c;
    return 0;
}
2023/12/17 17:34
加载中...