1025: [编程入门]数组插入处理(C++) 摘要:解题思路:一般前序遍历加后续遍历再插中,初始插头照顾值为最小的情况,比较为最大值则加在尾部参考代码://数组插入处理 #include<iostream> using namespace std;…… 题解列表 2023年09月21日 0 点赞 0 评论 435 浏览 评分:9.9
一个二维数组搞定最大子矩阵 摘要:解题思路:1.设一个足够大的二维数组2.从[1][1]开始向右下累加,使每个位置表示其左上方(包括该位置本身的数)的和3.四重for循环(前两重与后两重代表两个指针,指示矩阵的左上角和右下角)4.利用…… 题解列表 2023年09月21日 0 点赞 0 评论 416 浏览 评分:9.9
信息学奥赛一本通T1307-高精度乘法 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<vector>using namespace std;vector<int> mul(const vector<in…… 题解列表 2023年09月21日 0 点赞 0 评论 627 浏览 评分:0.0
高精度乘法,vector, 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<vector>using namespace std;vector<int> mul(const vector<in…… 题解列表 2023年09月21日 0 点赞 0 评论 289 浏览 评分:0.0
石头剪子布(不难,就是麻烦) 摘要:解题关键: strcmp() 字符串比较函数 头文件为#include strcmp(s1,s2) 若s1==s2,则返回0 若s1>s2,则返回大于0的值 若s1…… 题解列表 2023年09月21日 0 点赞 0 评论 438 浏览 评分:0.0
基因相关性(不知道为什么用gets,还是fgets,都通过不了,有没有大佬来说一下) 摘要:参考代码: ```c #include #include #define MAX 500 int main() { double c; scanf("%lf",&c); get…… 题解列表 2023年09月21日 0 点赞 0 评论 397 浏览 评分:0.0
两个数组解决 摘要:解题思路:两个数组+冒泡排序 ```cpp #include using namespace std; int main() { int i,n,m; cin>>…… 题解列表 2023年09月21日 0 点赞 0 评论 389 浏览 评分:0.0
2917: 奇数单增序列 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; int b[10000]; int c[10000]; int mai…… 题解列表 2023年09月20日 0 点赞 0 评论 342 浏览 评分:9.9
2909: 直方图 摘要:解题思路:一:使用排序, 注意:10行的判断格式;1.int b[100000]; 2.int main() { 3. int a; 4. cin>>a; 5. for(int i=1; i<…… 题解列表 2023年09月20日 0 点赞 0 评论 300 浏览 评分:6.0
2849: 石头剪子布(C语言) 摘要: #include #include//主函数中使用了strcmp函数 int main() { int N; scanf("%d",&N); for(int i=0;i…… 题解列表 2023年09月20日 0 点赞 0 评论 539 浏览 评分:0.0