题解列表
分解质因数与容斥原理
摘要:思路:设n个数,它们的最大公因子为G,最小公倍数为L,问有多少种不同的方法还原这个数列。质因数分解:每个数ai都可以分解为质因数的乘积,即:ai=p1ei1⋅p2ei2⋅…⋅pkeik,其中p1,p2……
题解 2212: 蓝桥杯算法训练-景点游览
摘要:解题思路:把小的数慢慢往后面放就可以啦。注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){&nbs……
题解 2236: 蓝桥杯算法训练-大小写转换
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ strin……
蓝桥杯2018年第九届真题-迷宫与陷阱 BFS
摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h"usingnamespacestd;#definell&nb……
C++个人写法(非二分)
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;#define ll long longint main(){ ……