摘要: 完全背包,价值取题意代价的最小值 1 #define HAVE_STRUCT_TIMESPEC 2 #include<bits/stdc++.h> 3 using namespace std; 4 int a[10007],b[10007],f[10007]; 5 int main(){ 6 ios 阅读全文
posted @ 2020-01-27 15:25 sewage 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 应该也可以用线段树/树状数组区间更新怪兽的生命值来做 1 #define HAVE_STRUCT_TIMESPEC 2 #include<bits/stdc++.h> 3 using namespace std; 4 long long pre[200007]; 5 int main(){ 6 io 阅读全文
posted @ 2020-01-27 15:23 sewage 阅读(323) 评论(0) 推荐(0) 编辑