摘要:
点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=5e4+10; int n,k; int a[N]; int len[N],suf[N]; int main() { ios::sync_with_stdio(0),cin 阅读全文
摘要:
点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=1e3+10,M=1e5+10; map<string,int> mp; int a[M]; bool vis[N]; int cnt[N]; int n,m; int m 阅读全文
摘要:
点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=1e6+10; int n,m; int a[N]; int cnt[N]; int main() { ios::sync_with_stdio(0),cin.tie(0) 阅读全文
摘要:
点击查看代码 #include<bits/stdc++.h> using namespace std; int m; int main() { ios::sync_with_stdio(0),cin.tie(0); cin>>m; int l=1,r=2; int sum=1; while(l<=m 阅读全文
摘要:
点击查看代码 #include<bits/stdc++.h> using namespace std; int n; int main() { ios::sync_with_stdio(0),cin.tie(0); cin>>n; int cur; cin>>cur; int ans=cur; fo 阅读全文
摘要:
点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=2e5+10; int n,c; int a[N]; int main() { ios::sync_with_stdio(0),cin.tie(0); cin>>n>>c; 阅读全文
摘要:
点击查看代码 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N=2e5+10; int n,m; LL s; int w[N],v[N]; int l[N],r[N]; LL s1[N],s2 阅读全文
摘要:
点击查看代码 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N=1e6+10; int n,m; int r[N]; int d[N],s[N],t[N]; LL b[N]; bool che 阅读全文