BIOS @ 2023-09-03 15:08:13
#include <iostream>
#include <unordered_map>
using namespace std;
#define int long long
const int mod = 9901;
unordered_map<int, int> ac;
int a, b;
signed main()
{
cin >> a >> b, b %= mod;
for (int i = 2; i <= a / i; i++)
while (a % i == 0)
ac[i]++, a /= i;
if (a > 1)
ac[a]++;
int res = 1;
for (auto t : ac)
{
int tmp = 1, p = t.first, q = t.second * b ;
while (q--)
tmp = (tmp * p + 1);
res = res * tmp % mod;
}
cout << res << endl;
}
RT,也不知道为什么...
by RP_INT_MAX @ 2023-09-03 15:23:28
@BIOS 指数可以直接取模吗。
by BIOS @ 2023-09-03 15:24:37
@RP_INT_MAX 没取模也是40分。我在怀疑因子和约数是不是不是一个意思()