题解列表
蓝桥杯2017年第八届真题-合根植物 并查集
摘要:```cpp
#include
using namespace std;
int n, m,k;
int fa[1005 * 1005];
int map[1005][1005];
int……
用vector巧解高精度问题
摘要:解题思路:注意事项:参考代码:#include<iostream>#include <vector> using namespace std;vector<int> add(vector <int> ……
1045: [编程入门]自定义函数之整数处理 c++
摘要:解题思路:思路普通,直白,易理解,新手做法。(1)构建两个数组,赋相同值。(2)通过双循环,b数组中的数依次与a数组的每一个数比较大小,通过sum记录值,达到9时,b[j]就是最值。交换b[j]与b[……
混子(为什么才25%??dp有的都30+)
摘要:#include
#include
using namespace std;
string a;
char b[27];
int main(){
cin>>a;
for(int i……
C++41行 快速幂+高精乘
摘要:解题思路:快速幂+高精乘注意事项:不用快速幂会超时,不用高精乘数据存不了。2的次方位数的规律网上有参考代码:#include<stdio.h>#include<string.h>const int m……
传纸条 双线程Dp,注意细节
摘要:**把来回两条路,看成两个人同时从起点出发,去往终点,双线程动态规划**
```cpp
#include
#include
using namespace std;
int map[55][……