摘要: 一:01背包 #include<cstdio> #include<algorithm> using namespace std; int m,t; int f[1001]; int w[1001],c[1001]; int main() { scanf("%d %d",&t,&m); for(int 阅读全文
posted @ 2017-10-28 15:59 12fs 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 1174 区间中最大的数 基准时间限制:1 秒 空间限制:131072 KB 1174 区间中最大的数 基准时间限制:1 秒 空间限制:131072 KB 1174 区间中最大的数 基准时间限制:1 秒 空间限制:131072 KB 给出一个有N个数的序列,编号0 - N - 1。进行Q次查询,查询 阅读全文
posted @ 2017-10-28 15:39 12fs 阅读(203) 评论(0) 推荐(0) 编辑