| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 31531 | lnx | 幂的末尾 | C++ | Accepted | 0 MS | 256 KB | 211 | 2023-11-19 14:45:01 |
#include<iostream> #include<iomanip> using namespace std; int main() { int a,b,x=1; cin>>a>>b; b=b%400; for(int i=1;i<=b;i++) { x=(x*a)%1000; } cout<<setw(3)<<setfill('0')<<x; return 0; }