04 2021 档案

摘要:金明今天很开心,家里购置的新房就要领钥匙了,新房里有一间金明自己专用的很宽敞的房间。 更让他高兴的是,妈妈昨天对他说:“你的房间需要购买哪些物品,怎么布置,你说了算,只要不超过N元钱就行”。 今天一早,金明就开始做预算了,他把想买的物品分为两类:主件与附件,附件是从属于某个主件的,下表就是一些主件与 阅读全文
posted @ 2021-04-29 22:06 limited_Infinite 阅读(47) 评论(0) 推荐(0)
摘要:#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 阅读(35) 评论(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 阅读(39) 评论(0) 推荐(0)
摘要:1271:【例9.15】潜水员 【题目描述】潜水员为了潜水要使用特殊的装备。他有一个带2种气体的气缸:一个为氧气,一个为氮气。让潜水员下潜的深度需要各种的数量的氧和氮。潜水员有一定数量的气缸。每个气缸都有重量和气体容量。潜水员为了完成他的工作需要特定数量的氧和氮。他完成工作所需气缸的总重的最低限度的 阅读全文
posted @ 2021-04-27 20:17 limited_Infinite 阅读(198) 评论(0) 推荐(0)
摘要:#include <bits/stdc++.h> using namespace std; const int INF = 0x7fffff; const int N = 1000; int dp[N],n,m,w,v,s,T,command; int main() { ios::sync_with 阅读全文
posted @ 2021-04-25 22:31 limited_Infinite 阅读(57) 评论(0) 推荐(0)
摘要:给定一个大小为 n≤106n≤106 的数组。 有一个大小为 kk 的滑动窗口,它从数组的最左边移动到最右边。 你只能在窗口中看到 kk 个数字。 每次滑动窗口向右移动一个位置。 以下是一个例子: 该数组为 [1 3 -1 -3 5 3 6 7],kk 为 33。 窗口位置最小值最大值 [1 3 - 阅读全文
posted @ 2021-04-25 22:01 limited_Infinite 阅读(79) 评论(0) 推荐(0)
摘要:#include <bits/stdc++.h> using namespace std; const int INF = 0x7fffff; const int N = 201; int dp[N],n,m,w,v,s; int main() { ios::sync_with_stdio(fals 阅读全文
posted @ 2021-04-25 20:00 limited_Infinite 阅读(35) 评论(0) 推荐(0)
摘要:#include <bits/stdc++.h> using namespace std; const int N = 10000; int n; unsigned long long res=0; struct Bag{ int rnval; int jyval; int weight; }bag 阅读全文
posted @ 2021-04-24 15:54 limited_Infinite 阅读(56) 评论(0) 推荐(0)
摘要:#include <bits/stdc++.h> using namespace std; const int N = 1000001; int l,r,n,m,w; double dp[N][2]; double res; int main(){ ios::sync_with_stdio(fals 阅读全文
posted @ 2021-04-24 10:08 limited_Infinite 阅读(49) 评论(0) 推荐(0)
摘要:#include <bits/stdc++.h> using namespace std; const int N = 1010; int Node_k,pre[N],in[N],post[N];//遍历用 struct Node { int value; Node *left, *right; N 阅读全文
posted @ 2021-04-20 22:25 limited_Infinite 阅读(105) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/anan-java/p/12196061.html#_label4 阅读全文
posted @ 2021-04-18 19:17 limited_Infinite 阅读(44) 评论(0) 推荐(0)
摘要:/*代码高亮*/ .cnblogs_code div { background: #282b2e; } .cnblogs_code { background: #282b2e; border-radius: 5px; border: none; font-family: consolas !impo 阅读全文
posted @ 2021-04-17 11:31 limited_Infinite 阅读(48) 评论(0) 推荐(0)
摘要:#include <bits/stdc++.h> using namespace std; const double pi = acos(-1.0); //高精度圆周率 const double eps = 1e-8; //偏差值 const int maxp = 1010; //点的数量 int 阅读全文
posted @ 2021-04-17 11:00 limited_Infinite 阅读(102) 评论(0) 推荐(0)
摘要:https://zoj.pintia.cn/problem-sets/91827364500/problems/91827366223 #include<bits/stdc++.h> using namespace std; struct message{ string name; int valu 阅读全文
posted @ 2021-04-11 09:46 limited_Infinite 阅读(51) 评论(0) 推荐(0)
摘要:#include<bits/stdc++.h> using namespace std; const int N = 10000; vector <int> v; int n,k,icin; int main(){ ios::sync_with_stdio(false); cin>>n>>k; fo 阅读全文
posted @ 2021-04-09 22:30 limited_Infinite 阅读(43) 评论(0) 推荐(0)
摘要:#include <bits/stdc++.h> using namespace std; const int N = 10000; int n; unsigned long long res=0; struct bag{ int value; int weight; }bag[N]; int M, 阅读全文
posted @ 2021-04-08 21:52 limited_Infinite 阅读(54) 评论(0) 推荐(0)

// //返回顶部 //返回顶部按钮