摘要: #include<iostream> #include<map> #include<queue> using namespace std; typedef long long ll; const int N=10000; int e[N]; int tmp[N]; ll merge_sort(int 阅读全文
posted @ 2022-04-21 23:30 xxj112 阅读(37) 评论(0) 推荐(0)
摘要: #include<iostream>#include<map>#include<queue>using namespace std;queue<int> qu;map<int, int> mp;int sss(int a){for(auto it=mp.begin();it!=mp.end();it 阅读全文
posted @ 2022-04-21 23:13 xxj112 阅读(182) 评论(0) 推荐(0)
摘要: map大数据时会超时 map有自动排序(降序:按first)和查重功能。 #include<iostream> #include<map> using namespace std; map<int, int> mp; void sss() { for(auto it=mp.begin();it!=m 阅读全文
posted @ 2022-04-21 22:49 xxj112 阅读(47) 评论(0) 推荐(0)
摘要: 空间直角坐标系Oxyz:卦限 、坐标面xOy 、横、纵、竖坐标; 向量: 自由向量 、逆向量 、零向量 、方向角 、方向余弦 、 a*b:数量积 、向量积不同;平面向量的向量积垂直于平面(遵循右手法则); |c|=|a||b|sinθ; 三角形面积=|ab*ac|/2; 平面的点法式方程; 一般式方 阅读全文
posted @ 2022-04-21 20:34 xxj112 阅读(178) 评论(0) 推荐(0)
摘要: /*博客代码字体设置开始*/ .cnblogs-markdown pre,#cnblogs_post_body pre{ /*控制代码不换行*/ white-space: pre; word-wrap: normal; } #cnblogs_post_body .hljs { /*设置字体*/ fo 阅读全文
posted @ 2022-04-21 16:48 xxj112 阅读(16) 评论(0) 推荐(0)
摘要: 1 #include<stdio.h> 2 #include<iostream> 3 using namespace std; 4 int map[100]; 5 void merge_sort(int q[],int l,int r) 6 { 7 if(l>=r) 8 return; 9 int 阅读全文
posted @ 2022-04-21 12:39 xxj112 阅读(22) 评论(0) 推荐(0)