摘要: #include<bits/stdc++.h> using namespace std; const int N = 1001; int dp[N][N]; string str1,str2; int LIS(){ for(int i=1;i<=str1.length();i++) for(int 阅读全文
posted @ 2021-04-27 22:25 limited_Infinite 阅读(33) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> using namespace std; const int N = 110; int dp[N],m,n,bx0; struct Cow{ int ts,tf,sum_sf; }b[N]; bool cmp(Cow a,Cow b){return a 阅读全文
posted @ 2021-04-27 22:08 limited_Infinite 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 1271:【例9.15】潜水员 【题目描述】潜水员为了潜水要使用特殊的装备。他有一个带2种气体的气缸:一个为氧气,一个为氮气。让潜水员下潜的深度需要各种的数量的氧和氮。潜水员有一定数量的气缸。每个气缸都有重量和气体容量。潜水员为了完成他的工作需要特定数量的氧和氮。他完成工作所需气缸的总重的最低限度的 阅读全文
posted @ 2021-04-27 20:17 limited_Infinite 阅读(109) 评论(0) 推荐(0) 编辑
// //返回顶部 //返回顶部按钮