题解列表

筛选

切开字符串-C语言

摘要:## 切开字符串-C语言 函数:正回文子串种类(manacher算法)、所有子串种类-正回文子串种类 ``` #include #define MaxChar 100001 int O……

1226题解——贪心

摘要:解题思路:分奇偶两种情况考虑。注意事项:参考代码:#include <stdio.h> #include <iostream>   using namespace std;   int gc……

注意‘&#039;x"要大写

摘要:解题思路:注意事项:参考代码:#include<stdio.h>void main(){ int h,l,i,z,y; int d;const int n;const int j;int *p=&j;……

直接解方程组

摘要:解题思路:注意事项:参考代码:x, a, y, b = map(int, input().split())m = b*y - a*xn = b- ares= m / nprint(&#39;%.2f&……

还是畅通工程

摘要:解题思路:最小生成树模版题注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int f[1000]; struct node { ……

1350: 分糖果-c++直接上模板

摘要:解题思路:传递糖果的方式是广搜,先定义一个node结构体struct node {     int num;//节点编号     int step;//访问步数 };然后直接上广搜模板void……

继续畅通工程

摘要:解题思路:最小生成树,如果道路是好的就提前连上且不用成本注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int f[1000]; s……