摘要: 视频链接:G01 快速幂_哔哩哔哩_bilibili Luogu P1226 【模板】快速幂||取余运算 #include <iostream> using namespace std; typedef long long LL; int a,b,p; int qpow(int a,int b,in 阅读全文
posted @ 2022-09-04 20:44 董晓 阅读(1225) 评论(0) 推荐(0)
摘要: A04 高精度算法 除法_哔哩哔哩_bilibili P1480 A/B Problem - 洛谷 // 高精度 O(n) #include<bits/stdc++.h> using namespace std; void div(string sa,int b){ int m=sa.size(); 阅读全文
posted @ 2022-09-04 17:37 董晓 阅读(998) 评论(0) 推荐(1)
摘要: A03 高精度算法 乘法_哔哩哔哩_bilibili P1303 A*B Problem - 洛谷 // 高精度 O(n^2) #include<bits/stdc++.h> using namespace std; void mul(string sa,string sb){ int la=sa. 阅读全文
posted @ 2022-09-04 11:03 董晓 阅读(1348) 评论(0) 推荐(1)
摘要: A02 高精度算法 减法_哔哩哔哩_bilibili P2142 高精度减法 - 洛谷 // 高精度 O(n) #include<bits/stdc++.h> using namespace std; bool cmp(string a,string b){ if(a.size()<b.size() 阅读全文
posted @ 2022-09-04 09:26 董晓 阅读(930) 评论(1) 推荐(1)