1 solutions
-
1
#include<bits/stdc++.h> using namespace std; int pwx6(int x,int y){ int tot=1; while(y--){ tot*=x; tot%=1000; } return tot; } int main(){ int a,b; cin>>a>>b; int ans=pwx6(a,b); if(ans<10){ cout<<"00"<<ans; } else if(ans<100){ cout<<"0"<<ans; } else cout<<ans; return 0; }
- 1
Information
- ID
- 6919
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- 1
- Tags
- # Submissions
- 3
- Accepted
- 2
- Uploaded By