题解列表

筛选

1103开心的金明(dp动态规划)

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;const int S = 28;int M;//拥有的钱int N;//需要买的物品数int……

编写题解 2810: 鸡尾酒疗法

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,a,b;  cin>>n; float x,y;……

算法思维弱,尽力了

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;void sc (int a,int b, int c){    cout << a……

编写题解 2831: 画矩形

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int a,b;bool d;char c;cin>>a>>b……

C++-使用动态数组,使用检查目标数组是否重复或检查原数组待输入值是否重发​

解题思路:排序:使用的普通的冒泡排序,其他的排序也可以无影响去重:思路1:检测目标数组是否存在与当前出原数组待输入项相等的值思路2:检测原数组待输入项i与i-1项是否相等注意事项:参考代码:```cpp#include#include#include#includeusingnamespacestd;

2042: 杨辉三角

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N =1e3;ll a……

1100采药(dp记忆化搜索)

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>#include<cstring>using namespace std;const int M……

2880: 计算鞍点

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;const int N=1e3+5;typedef long long ll;ll……