![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
机式算法
LAIXUYUAN
学生一名
展开
-
最大子数组问题
寻找A的和最大的非空连续子数组 #include <iostream> #include <cstdio> #include <string> #include <algorithm> #include <vector> #include <math.h> #include <climits> using namespace std; //17 100 113 110 85 105 102 86 63 81 101原创 2021-05-01 09:42:08 · 56 阅读 · 0 评论 -
雨水问题 C/C++
也是前几天的调剂机试题,没写出来果然是因为考场太紧张了???? #include <iostream> #include <cstdio> #include <string> #include <algorithm> #include <vector> #include <math.h> using namespace std; int capacity_caculate(int *num, int start, int end原创 2021-04-19 16:32:19 · 218 阅读 · 0 评论 -
蛇形矩阵 C/C++
前几天南科大复试机式,遗憾没过,选择题目出现失误,最终50分,多个矩阵相乘哪一题我没有想出到底是哪个刁钻的矩阵卡了我,而南科大只有全部用例通过才有分数,因此机式没过。 第一题是蛇形矩阵,前天机式没有选这题,早知道选这题机式应该就能过关,今天思路+代码只花了23分钟,代码如下,矩阵大小可以自行修改。 #include <iostream> #include <cstdio> using namespace std; short status = 0; int matrix[1原创 2021-04-19 13:26:00 · 170 阅读 · 0 评论