2019年1月10日

找水王

摘要: 思路:水王发的帖子最多,所以两个两个抵消,最后剩下的那个一定是水王的帖子 下面是c++程序 #include <iostream> using namespace std; typedef int DataType; DataType FindKing(DataType* ID, int n) { 阅读全文

posted @ 2019-01-10 10:24 数理小牛 阅读(83) 评论(0) 推荐(0) 编辑

第一阶段结对作业验收小学生四则运算:

摘要: 一 程序代码 #include<iostream>#include<stdlib.h>#include<time.h>using namespace std;void boom(){float d;int z,n,m=0,zq=0,cw=0; int first_num,second_num;sra 阅读全文

posted @ 2019-01-10 10:20 数理小牛 阅读(83) 评论(0) 推荐(0) 编辑

个人项目3

摘要: #include<iostream>#include<stdlib.h>#include<time.h>using namespace std;void boom(){float d;int z,n,m=0,zq=0,cw=0; int first_num,second_num;srand((uns 阅读全文

posted @ 2019-01-10 10:19 数理小牛 阅读(90) 评论(0) 推荐(0) 编辑

返回一个整数数组中最大子数组的和2

摘要: 要求: 要求程序必须能处理1000个元素; 每个元素是int32类型的,出现子数组之和大于整型表示的最大范围会出现什么情况; 输入一个整形数组,数组里有整数也有负数; 数组中连续的一个或多个整数组成一个子数组,每个子数组都有一个和; 求所有子数组的和的最大值,要求时间复杂度为O(n)。 第一段处理1 阅读全文

posted @ 2019-01-10 10:17 数理小牛 阅读(115) 评论(0) 推荐(0) 编辑

导航