能干的大卫追赶太阳
能干的大卫追赶太阳
全部文章
题解
归档
标签
去牛客网
登录
/
注册
能干的大卫追赶太阳的博客
全部文章
/ 题解
(共2篇)
题解 | #快速乘#
#include <iostream> using namespace std; typedef long long LL; LL a,b,p; LL mul(LL a,LL b, LL p){ LL res=0; while(b...
C++
2022-04-16
0
291
题解 | #快速幂#
//使用递归实现快速幂 #include using namespace std; typedef long long LL; LL a,b,m; int qmi(LL a,LL k,LL p){ if(k==0) return 1; LL t=qmi(a,k/2,p); if(k&1) ...
C++
2022-04-09
1
368