Yousc1231 @ 2023-07-08 12:26:35
#include <iostream>
#include <cmath>
using namespace std;
long long sum;
int main(){
int a,b; cin>>a>>b;
long long cnt=pow(a,b);
for(int i=1;i*i<=cnt;++i){
if(cnt%i==0){
sum+=i;
if(cnt/i!=i) sum+=cnt/i;
}
}
cout<<sum%9901;
return 0;
}
by __er @ 2023-07-08 12:31:36
@Yousc1231 朴素都能过的话这题评绿评给你看的?
by __er @ 2023-07-08 12:32:38
能不能写题之前看看数据范围啊,就摆在那里又不是说你看不见,麻烦动动脑子