摘要:
A Car Show 题意: 给定一个数组,请找到有多个区间 [L,R] 满足 1 到 m 的数都出现过。 分析:直接双指针就好 #include<bits/stdc++.h> using namespace std; long long n,m,s[100100],v[100100],cnt,an 阅读全文
摘要:
这篇博客写的非常清晰 https://zhuanlan.zhihu.com/p/549242325 给定一个字符串,问有多少个以 k,f,c 结尾的回文子串。 #include<bits/stdc++.h> using namespace std; #define lowbit(x) x&(-x) 阅读全文