摘要: 高精度加法模板 #include<iostream> using namespace std; #include<vector> const int N=1e6+10; vector<int> add(vector<int>&A,vector<int>&B) { vector<int> C; int 阅读全文
posted @ 2022-03-22 20:42 wanzg 阅读(49) 评论(0) 推荐(0)
摘要: 工具:VS2022 前提是一一个单调数组 #include<iostream> using namespace std; const int N = 1e6+10; int n,m; int q[N]; int main() { scanf("%d%d",&n,&m); for(int i=0;i< 阅读全文
posted @ 2022-03-22 15:00 wanzg 阅读(33) 评论(0) 推荐(0)
摘要: 归并排序 #include<iostream> using namespace std; const int N =1e6+10; int n; int q[N]; int tmp[N]; void merge_sort(int q[],int le ,int r) { if(le>=r)retur 阅读全文
posted @ 2022-03-22 11:32 wanzg 阅读(33) 评论(0) 推荐(0)