delete pics to save space

This commit is contained in:
2023-08-03 09:22:52 +08:00
commit de60cd6ed4
1334 changed files with 66221 additions and 0 deletions

19
1.1226.cpp Normal file
View File

@ -0,0 +1,19 @@
#include<cstdio>
typedef long long LL;
LL ksm(LL a,LL b,LL p)
{
LL res=1;
for(;b>0;b>>=1)
{
if(b&1) res=res*a%p;
a=a*a%p;
}
return res%p;
}
LL b,p,k;
int main()
{
scanf("%lld%lld%lld",&b,&p,&k);
printf("%lld^%lld mod %lld=%lld",b,p,k,ksm(b,p,k));
return 0;
}