题解列表
3027: 集合的划分题解(DP)
摘要:解题思路:递推公式- 将n - 1个子集放入k - 1个盒子, 如果第n个子集不在n- 1子集中, 那么方案数 f[n-1][k-1], 如果第n个子集在n-1个子集之中,那么方案数k * f[n-1……
循环循环+循环(C++)
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;//已有一个已正序排好的9个元素的数组,今输入一个数要求按原来排序的规律将它插入数组中。int……
2823: 计算分数加减表达式的值
摘要:解题思路:注意事项:参考代码:#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
int n……
2905: 最大值和最小值的差
摘要:```
#include
using namespace std;
const int N=10010;
int a[N],n,b,e,h;
int main() {
cin>>n;
……
题解 2886: 图像旋转
摘要: #include
using namespace std;
const int N=100;
int a[N][N],b[N][N],n,m,c,z,maxx;
……
题解 2881: 图像相似度
摘要: #include
using namespace std;
const int N=100;
int a[N][N],b[N][N],n,m;
doub……
2822: 求分数序列和
摘要:解题思路:注意事项:参考代码:#include#includeusing namespace std;
double molecule(int n)
{
if(n==1)
……
2820: 含k个3的数
摘要:解题思路:注意事项:参考代码:#include<iostream>
using namespace std;
int main()
{
long int m,n;
int s……
2880: 计算鞍点
摘要:```
#include
using namespace std;
const int N=10010;
int a[6][6];
int main() {
int n=5;
for……