网站首页 站内搜索

搜索结果

查询Tags标签: vect,共有 6条记录
  • c++指针存储

    #include <stdio.h>#include <string.h>#include <iostream>#include <vector>#include <map> struct info_keep_level_data_top_stru_t{ char data_name[24]; int data_type; // 1:map; 2:vector; 4:set; 5:queue; 6: …

    2021/12/18 9:50:13 人评论 次浏览
  • c++指针存储

    #include <stdio.h>#include <string.h>#include <iostream>#include <vector>#include <map> struct info_keep_level_data_top_stru_t{ char data_name[24]; int data_type; // 1:map; 2:vector; 4:set; 5:queue; 6: …

    2021/12/18 9:50:13 人评论 次浏览
  • 最小矩形覆盖

    #include<bits\stdc++.h> using namespace std; #define int long long void in(int &x){int y=1;char c=getchar();x=0;while(c<0||c>9){if(c==-)y=-1;c=getchar();}while(c<=9&&c>=0){ x=(x<<1)+(x<<3)+c-0;c=getchar();}…

    2021/11/12 23:14:07 人评论 次浏览
  • 最小矩形覆盖

    #include<bits\stdc++.h> using namespace std; #define int long long void in(int &x){int y=1;char c=getchar();x=0;while(c<0||c>9){if(c==-)y=-1;c=getchar();}while(c<=9&&c>=0){ x=(x<<1)+(x<<3)+c-0;c=getchar();}…

    2021/11/12 23:14:07 人评论 次浏览
  • 算法之归并排序(mergesort)

    算法之归并排序(mergesort) 情况一、 两个有序(升序)的数组归并为一个有序数组 时间复杂度O(N) 原理 通过指针法:先比较两数组的初始位置的数据大小,比较小的数据放入一个最终的数组中,并且此数组向后移位,较小数据的数组也向后移动。 #include <vector> #in…

    2021/9/4 20:07:44 人评论 次浏览
  • 算法之归并排序(mergesort)

    算法之归并排序(mergesort) 情况一、 两个有序(升序)的数组归并为一个有序数组 时间复杂度O(N) 原理 通过指针法:先比较两数组的初始位置的数据大小,比较小的数据放入一个最终的数组中,并且此数组向后移位,较小数据的数组也向后移动。 #include <vector> #in…

    2021/9/4 20:07:44 人评论 次浏览
扫一扫关注最新编程教程