上一页 1 ··· 6 7 8 9 10 11 12 下一页
摘要: #include<iostream> #include<map> #include<set> using namespace std; struct like{ string name; int num; }wb[1000000]; int main(){ int n,m; map<string,i 阅读全文
posted @ 2021-12-31 17:46 兮何其 阅读(163) 评论(0) 推荐(0)
摘要: unordered_map<int,int> h={{0,0}, {1,31},{3,31},{5,31},{7,31}, {8,31}, {10,31}, {12,31}, {4,30}, {6,30}, {9,30}, {11,30}, {2,28}}; 阅读全文
posted @ 2021-12-21 15:28 兮何其 阅读(1422) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/Sakura_Sora/article/details/104684755 阅读全文
posted @ 2021-12-21 15:19 兮何其 阅读(19) 评论(0) 推荐(0)
摘要: 想象l,区间所有的数都满足条件 求满足条件的最大值:如果l, r 范围的数都满足条件,那势必要取中时加一,即偶数时候取下一位,那就确定了查找范围是在【l,mid-1】,【mid,r】;要区分出最右端,势必要判断右边的不合法情况: while(l<r){ int mid=l+r+1 >>1; if(m 阅读全文
posted @ 2021-12-18 23:31 兮何其 阅读(21) 评论(0) 推荐(0)
摘要: char tmp[200]; cin.getline(tmp,200); //输入一行字符串,最大长度是200; 前面要用getchar() 清除缓存 阅读全文
posted @ 2021-12-17 18:14 兮何其 阅读(42) 评论(0) 推荐(0)
摘要: AcWing 889. 满足条件的01序列 - AcWing 阅读全文
posted @ 2021-12-11 14:30 兮何其 阅读(17) 评论(0) 推荐(0)
摘要: #include<iostream> #include<algorithm> using namespace std; int main() { int array[] = {5,6,7,8,4,2,1,3,0}; int len=sizeof(array)/sizeof(int); cout<<" 阅读全文
posted @ 2021-12-06 20:26 兮何其 阅读(29) 评论(0) 推荐(0)
摘要: 1.当要把相交的区间作为一个时,按右端点排序 2.当要把相交的区间作为不同的时,按左端点排序 阅读全文
posted @ 2021-12-06 16:59 兮何其 阅读(105) 评论(0) 推荐(0)
摘要: #include <iostream> #include <cstring> #include <algorithm> #include <vector> using namespace std; const int N = 210,M=N; int h[N], e[M], ne[M], idx, 阅读全文
posted @ 2021-12-03 21:02 兮何其 阅读(88) 评论(0) 推荐(0)
摘要: Cab=C(a-1)(b-1) + C(a-1)b 阅读全文
posted @ 2021-11-23 18:01 兮何其 阅读(30) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 下一页