摘要: A Online Shopping 模拟计算就得了。 ACCode #include <bits/stdc++.h> #define log printf using namespace std; const int N = 10010; int n, s, k, p[N], q[N], sum; 阅读全文
posted @ 2024-01-19 21:35 worker2011 阅读(6) 评论(0) 推荐(0) 编辑
摘要: A Not Too Hard \(N \le 8\) 也是醉了,循环枚举就得了呗? 遍历一遍数组就可以 AC 了。 ACCode #include <bits/stdc++.h> using namespace std; const int N = 10; int n, x, a[N], sum; 阅读全文
posted @ 2024-01-19 21:18 worker2011 阅读(7) 评论(0) 推荐(0) 编辑