摘要:
1007 简单博弈,队友做的 #include<bits/stdc++.h> using namespace std; const int N=2e5; int n,a[N+5],b[N+5],A,B; bool vis[N+5]; inline int read() { int x=0;bool 阅读全文
摘要:
K 贪心地先凑出前后端后,中间的部分是本质不同的子序列个数 然后枚举可以重叠的部分,如果可以重叠肯定是回文后缀 有不少细节,比如空串,重叠部分要求后面的能取到 #include<cstdio> #include<iostream> #define int long long #define ULL 阅读全文