摘要: 7月5日 今天完成了二路归并排序,下面是我的源代码 #include<iostream>using namespace std; int n;int* a; // 定义为指针,用于动态分配内存void Merge(int a[], int t[], int low, int mid, int hig 阅读全文
posted @ 2024-07-06 14:02 努力不掉发 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 7月5日 今天完成了数据结构第三题;寻找大富翁,下面是我的源代码 #include <iostream>#include <vector>using namespace std;const int max_size = 1000010;int num[max_size]; void sift(int 阅读全文
posted @ 2024-07-06 14:02 努力不掉发 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 7月四日 完成了数据结构的第二个题目;老板的作息表,这是我的源代码 #include <iostream>#include <cstdio>#include <string>#include <vector>#include <queue>#include <map>#include <algori 阅读全文
posted @ 2024-07-06 14:01 努力不掉发 阅读(9) 评论(0) 推荐(0) 编辑