Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
71024 sh25_ganzy 幂的末尾 C++ 通过 0 MS 252 KB 255 2025-10-24 12:51:13

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main(){ int a,b,p=1,w2,w1,w0; cin>>a>>b; for(int i=0;i<b;i++){ p*=a; p%=1000; } w0=p%10; w1=p/10%10; w2=p/100; cout<<w2<<w1<<w0; return 0; }


测评信息: