Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
56134 | 许兴平 | 幂的末尾 | C++ | Accepted | 0 MS | 240 KB | 194 | 2024-11-09 14:28:49 |
#include<bits/stdc++.h> using namespace std; int main(){ int a,b; long long result=1; cin>>a>>b; for(int i=0;i<b;i++){ result*=a; result%=1000; } cout<<result; return 0; }