上一页 1 ··· 47 48 49 50 51 52 53 54 55 ··· 171 下一页
摘要: ##[$AcWing$ $1018$. 最低通行费](https://www.acwing.com/problem/content/1020/) ### 一、题目描述 一个商人穿过一个 $N×N$ 的正方形的网格,去参加一个非常重要的商务活动。 他要从网格的 **左上角** 进,**右下角** 出。 阅读全文
posted @ 2021-11-29 14:46 糖豆爸爸 阅读(482) 评论(0) 推荐(1)
摘要: \(AcWing\) \(1015\). 摘花生 一、题目描述 \(Hello\) \(Kitty\)想摘点花生送给她喜欢的米老鼠 她来到一片有网格状道路的矩形花生地(如下图),从 西北角 进去,东南角 出来 地里每个道路的交叉点上都有种着一株花生苗,上面有若干颗花生,经过一株花生苗就能摘走该它上面 阅读全文
posted @ 2021-11-26 15:25 糖豆爸爸 阅读(1498) 评论(0) 推荐(1)
摘要: 题目传送门 阅读全文
posted @ 2021-11-26 15:12 糖豆爸爸 阅读(103) 评论(0) 推荐(0)
摘要: 题目传送门 //P3383.cpp #include <bits/stdc++.h> using namespace std; const int N = 1e8 + 10; //欧拉筛 int primes[N], cnt; // primes[]存储所有素数 bool st[N]; // st[ 阅读全文
posted @ 2021-11-26 15:09 糖豆爸爸 阅读(61) 评论(0) 推荐(0)
摘要: mstsc www.wmarkj.com:27008 #https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/ip.txt #远程端口:27001 阅读全文
posted @ 2021-11-26 11:26 糖豆爸爸 阅读(262) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; const int N = 110; struct Node { int weight; //重量 int volume; //体积 int money; //让利金额 } a[N]; /** 测试用例 10 阅读全文
posted @ 2021-11-25 10:47 糖豆爸爸 阅读(41) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; const int N = 1010; int n, m; int v[N], w[N]; int f[N]; /** 测试用例: 80 2 18 10 30 20 */ //完全背包问题 int main( 阅读全文
posted @ 2021-11-25 10:17 糖豆爸爸 阅读(138) 评论(0) 推荐(0)
摘要: 题目: #include<bits/stdc++.h> using namespace std; const int N = 1010; int n, m; int v[N], w[N]; int f[N]; int main() { //优化输入 ios::sync_with_stdio(fals 阅读全文
posted @ 2021-11-25 10:14 糖豆爸爸 阅读(192) 评论(0) 推荐(0)
摘要: 题目传送门 #include <bits/stdc++.h> using namespace std; //2^7是极大值,就是 128是队伍的最大值,完全二叉树的最底层是128,上面肯定是127个,加在一起是255个,声明一个大于255的数字N可以保存的下 const int N = 260; i 阅读全文
posted @ 2021-11-24 16:01 糖豆爸爸 阅读(134) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; stack<char> s; int num; /** 测试用例: 2 [({})] ()[]() */ char trans(char a) { if (a == ')') return '('; if ( 阅读全文
posted @ 2021-11-24 14:33 糖豆爸爸 阅读(42) 评论(0) 推荐(0)
上一页 1 ··· 47 48 49 50 51 52 53 54 55 ··· 171 下一页
Live2D