摘要:
//快速排序模板 #include<iostream> using namespace std; const int N = 100001; int a[N]; void quickersort(int l,int r) { if(l>=r) return; int i=l-1;int j=r+1; 阅读全文
摘要:
//二分查找(两种模板) #include<iostream>using namespace std;#define N 100001int a[N];int main(){ int n, m; cin >> n >> m; for (int i = 0; i < n; i++) scanf("%d 阅读全文
摘要:
vector容器题目 #include<iostream> using namespace std;#include<vector>int a[101];bool FindPrime(int sum){ if (sum == 1 ) return false; for (int i = 2; i < 阅读全文