题解列表
1096扫雷(构建两个数组,for循环遍历实现)
摘要:解题思路:注意事项:参考代码:#include#includeusing namespace std;int main(){ int m, n; int k = 1;//后面输出第几组数据用的 whi……
1098陶陶摘苹果(for循环遍历解决)
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a[15];//存苹果高度 int b;//存陶陶的高度 in……
1099校门外的树(数组解决)
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int m;//马路长度 int n;//组数 cin >> m >>……
1242: 矩阵转置
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;const int N=1e3+5;typedef long long ll;ll……
1100采药(dp记忆化搜索)
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>#include<cstring>using namespace std;const int M……
蓝桥杯算法训练VIP-整数平均值
摘要:解题思路:1.封装成函数,传入数据量n即可,函数返回平均值,2.函数通过循环获取输入,并累加求和,3.计算平均值,函数结果回传注意事项:此题要求得到平均值,但结果是一个整数,如例子给出的 3 4 0 ……
2042: 杨辉三角
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N =1e3;ll a……
编写题解 2831: 画矩形
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int a,b;bool d;char c;cin>>a>>b……
编写题解 2806: 人口增长问题
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int x,n;cin>>x>>n;double s=x*1.……