摘要: https://www.luogu.com.cn/problem/P1873 #include<bits/stdc++.h> using namespace std; int n, m, a[1000005], max_h=-1; bool check(int h){ long long sum=0 阅读全文
posted @ 2020-06-24 21:15 TFLSNOI 阅读(266) 评论(0) 推荐(0) 编辑
摘要: https://www.luogu.com.cn/problem/P1102 方法一:计数(只能拿92,有一个测试点过不了) #include<bits/stdc++.h> using namespace std; int n, c, a[200005]; int b[1<<28];//注意数组最大 阅读全文
posted @ 2020-06-24 16:53 TFLSNOI 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 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; 阅读全文
posted @ 2020-06-24 16:33 TFLSNOI 阅读(339) 评论(0) 推荐(0) 编辑