Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
29723 | 惠子铭 | 幂的末尾 | C++ | Accepted | 0 MS | 248 KB | 182 | 2023-11-02 18:48:36 |
#include <bits/stdc++.h> using namespace std; int main(){ int a,b,t=1; cin>>a>>b; for(int i=1;i<=b;i++) t=t*a%1000; cout<<setw(3)<<setfill('0')<<t; return 0; }