上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 26 下一页
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N = 2e5 + 10; int n, m; int x[N], t[N]; vector<int> a, b, c; int f 阅读全文
posted @ 2022-06-27 14:19 wKingYu 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N = 1e6 + 10; void solve() { LL p, q, b; scanf("%lld %lld %lld", & 阅读全文
posted @ 2022-06-26 22:02 wKingYu 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 贪心 + 单调栈 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N = 1e6 + 10; int n, k; int a[N]; void solve() { cin >> n 阅读全文
posted @ 2022-06-26 18:21 wKingYu 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 等价变形 + 前缀和 + 单调栈 + 二分 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N = 1e6 + 10; int n, res; int a[N]; LL s[N]; 阅读全文
posted @ 2022-06-26 15:11 wKingYu 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 数论 + 贪心 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N = 1e6 + 10; int n; void solve() { cin >> n; int res = 1, 阅读全文
posted @ 2022-06-26 13:04 wKingYu 阅读(16) 评论(0) 推荐(0) 编辑
摘要: KMP + 状态机 点击查看代码 #include<iostream> #include<vector> #include<cstring> #include<algorithm> using namespace std; const int N = 60; const int mod = 1e9 阅读全文
posted @ 2022-06-24 23:02 wKingYu 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 点击查看代码 #include<iostream> #include<cstring> #include<algorithm> using namespace std; const int N = 1e5 + 10; int n; int a[N]; int f[N][3]; int main() 阅读全文
posted @ 2022-06-24 21:47 wKingYu 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 点击查看代码 #include<iostream> #include<cstring> using namespace std; const int N = 100010, M = 110; int n, m; int w[N]; int f[N][M][2]; int main() { cin > 阅读全文
posted @ 2022-06-21 23:09 wKingYu 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 点击查看代码 #include<iostream> using namespace std; const int N = 100010; const int INF = 0x3f3f3f3f; int n, w; int f[N][2]; int main() { int T; cin >> T; 阅读全文
posted @ 2022-06-21 21:40 wKingYu 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 点击查看代码 #include<iostream> #include<vector> #define fi first #define se second using namespace std; typedef pair<int,int> PII; const int N = 70, M = 32 阅读全文
posted @ 2022-06-21 14:32 wKingYu 阅读(10) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 26 下一页