上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 26 下一页
摘要: 点击查看代码 #include<iostream> #include<algorithm> #define fi first #define se second using namespace std; const int N = 5010; int n; int f[N]; pair<int,in 阅读全文
posted @ 2022-06-17 12:07 wKingYu 阅读(34) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<iostream> using namespace std; const int N = 110; int n; int a[N], f[N], ff[N]; int main() { cin >> n; for (int i = 1; i <= n; i ++) c 阅读全文
posted @ 2022-06-17 10:40 wKingYu 阅读(35) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<iostream> using namespace std; const int N = 1010; int n; int a[N], f[N], ff[N]; int main() { cin >> n; for (int i = 1; i <= n; i ++) 阅读全文
posted @ 2022-06-16 22:18 wKingYu 阅读(34) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<iostream> using namespace std; const int N = 110; int k, n; int a[N], f[N]; int main() { cin >> k; while (k --) { cin >> n; for (int i 阅读全文
posted @ 2022-06-16 21:59 wKingYu 阅读(64) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<iostream> using namespace std; const int N = 60; int n, m; int a[N][N]; int f[2 * N][N][N]; int main() { cin >> m >> n; for (int i = 1 阅读全文
posted @ 2022-06-16 21:34 wKingYu 阅读(41) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<iostream> using namespace std; const int N = 20; int n, a, b, c; int s[N][N]; int f[2 * N][N][N]; int main() { cin >> n; while (cin >> 阅读全文
posted @ 2022-06-15 23:58 wKingYu 阅读(30) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<iostream> using namespace std; const int N = 110; const int INF = 1e9; int n; int s[N][N], f[N][N]; int main() { cin >> n; for (int i 阅读全文
posted @ 2022-06-15 22:55 wKingYu 阅读(48) 评论(0) 推荐(0)
摘要: BFS + 动态规划 运行时间 855 ms 点击查看代码 #include<iostream> #include<cstring> #include<queue> #define fi first #define se second using namespace std; typedef pai 阅读全文
posted @ 2022-06-15 22:33 wKingYu 阅读(26) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<iostream> #include<algorithm> using namespace std; typedef pair<int,int> PII; const int N = 1e5 + 10; int n; PII cow[N]; int main() { 阅读全文
posted @ 2022-06-14 22:24 wKingYu 阅读(32) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<iostream> #include<algorithm> using namespace std; const int N = 1e5 + 10; int n, res; int a[N]; int main() { cin >> n; for (int i = 0 阅读全文
posted @ 2022-06-14 21:30 wKingYu 阅读(32) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 26 下一页