摘要: P1908 逆序对 做法早就忘了,今回忆一波 #include<bits/stdc++.h> using namespace std; long long n,a[500005],b[500005],ans; void merge(int l,int r)//分解整个数组 { if(l==r)ret 阅读全文
posted @ 2019-08-04 23:36 yige_2019 阅读(137) 评论(0) 推荐(0)
摘要: P1706 全排列问题 简单的搜索与回溯。 #include<bits/stdc++.h> using namespace std; int a[40],n,r; bool flag[40]= { }; void print() { for(int i=1; i<=n; i++) { if(a[i] 阅读全文
posted @ 2019-08-04 23:21 yige_2019 阅读(115) 评论(0) 推荐(0)
/**/