利用指针解决字符数组 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main(){ string str; g…… 题解列表 2023年12月26日 0 点赞 0 评论 182 浏览 评分:0.0
转置嘛,就是互换行列呗 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int arr[3][3]; int *p = &arr[…… 题解列表 2023年12月26日 0 点赞 0 评论 145 浏览 评分:0.0
循环找公因数和公倍数 摘要:解题思路:inline 为内联函数注意事项:参考代码:#include<iostream>using namespace std;inline int find_max(int a,int b){ …… 题解列表 2023年12月26日 0 点赞 0 评论 216 浏览 评分:0.0
2824: 求出e的值 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> using namespace std; long long int jc(int n) …… 题解列表 2023年12月26日 0 点赞 0 评论 208 浏览 评分:0.0
指针遍历解决 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;//输入10个数字,然后逆序输出。int main(){ int arr[10] = {…… 题解列表 2023年12月26日 0 点赞 0 评论 211 浏览 评分:0.0
3027: 集合的划分题解(DP) 摘要:解题思路:递推公式- 将n - 1个子集放入k - 1个盒子, 如果第n个子集不在n- 1子集中, 那么方案数 f[n-1][k-1], 如果第n个子集在n-1个子集之中,那么方案数k * f[n-1…… 题解列表 2023年12月26日 0 点赞 0 评论 307 浏览 评分:9.9
循环循环+循环(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;//已有一个已正序排好的9个元素的数组,今输入一个数要求按原来排序的规律将它插入数组中。int…… 题解列表 2023年12月26日 0 点赞 0 评论 204 浏览 评分:0.0
2823: 计算分数加减表达式的值 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> using namespace std; int main() { int n…… 题解列表 2023年12月26日 0 点赞 0 评论 214 浏览 评分:0.0
2905: 最大值和最小值的差 摘要:``` #include using namespace std; const int N=10010; int a[N],n,b,e,h; int main() { cin>>n; …… 题解列表 2023年12月26日 0 点赞 0 评论 219 浏览 评分:6.0
题解 2886: 图像旋转 摘要: #include using namespace std; const int N=100; int a[N][N],b[N][N],n,m,c,z,maxx; …… 题解列表 2023年12月26日 0 点赞 0 评论 140 浏览 评分:0.0