摘要:
https://www.luogu.com.cn/problem/P2249 方法一:二分手写模板 #include<bits/stdc++.h> using namespace std; int n, m, a[1000005], q; int seach(int x){ int ret=-1; 阅读全文
摘要:
https://www.luogu.com.cn/problem/P1116 1 #include<bits/stdc++.h> 2 using namespace std; 3 int n, ans, a[10005]; 4 int main() 5 { 6 //冒泡排序 7 8 cin>>n; 阅读全文
摘要:
https://www.luogu.com.cn/problem/P1152 #include<bits/stdc++.h> using namespace std; int n, a[1005];//用于标记[1,n-1] 是否出现 int f1, f2;//用于存储两个连续元素 int main 阅读全文