摘要:
#include <iostream> #include <cstring> #include <vector> using namespace std; using ll = long long ; const int M=1e6+10; int n,x,dep[M],mx[M],dp[M];// 阅读全文
摘要:
#include <bits/stdc++.h> using namespace std; using ll = long long ; const int N=20,M=1<<N; ll dp[M][N+10],a[22][22]; int main() { ios::sync_with_stdi 阅读全文
摘要:
#include <bits/stdc++.h> #define please return #define ac 0 using namespace std; using ll = long long ; bool vis[1003]; void solve() { int n,m; cin>>n 阅读全文
摘要:
#include <iostream> #include <vector> using namespace std; using ll = long long ; const int N=2e5+10; ll f[N],g[N],size1[N]; vector<int>gg[N]; void df 阅读全文
摘要:
#include <bits/stdc++.h> using namespace std; using ll = long long; const int maxn=1e6+10; int trie[maxn][26],k,cnt[maxn],fail[maxn]; void insert(char 阅读全文
摘要:
https://ac.nowcoder.com/acm/contest/11173/C #include <bits/stdc++.h> using namespace std; #define int long long using LL = long long; template <typena 阅读全文
摘要:
#include <bits/stdc++.h> using namespace std; const int maxn=1e5+10; struct node{ int next,to,val; }e[maxn<<1]; int head[maxn<<1],k; void add(int from 阅读全文