上一页 1 2 3 4 5 6 7 8 ··· 14 下一页
摘要: 蓝桥天梯结束了,怎么说呢,基本上发挥出来的,但争取争取说不定会更好,这个就不纠结了,这就属于是做题策略和平时的功夫没到位,随缘了,下面对自己简单的说一下: 补题:一定要补,学过的知识点一定要补,没学过的记在那边,简单的就补,难的就留着学到的时候写,一定要补题... 思考:自认为自己思维题还行,这个本 阅读全文
posted @ 2022-04-24 13:19 小志61314 阅读(36) 评论(0) 推荐(0)
摘要: 题目详情 - L2-013 红色警报 (25 分) (pintia.cn) #include<iostream> using namespace std; const int N=1e5+10; int p[N]; bool st[N]; struct mess{ int x,y; }v[N]; i 阅读全文
posted @ 2022-04-22 16:29 小志61314 阅读(52) 评论(0) 推荐(0)
摘要: 题目详情 - L2-015 互评成绩 (25 分) (pintia.cn) 结构体排序: #include<iostream> #include<algorithm> using namespace std; const int N=1e5+10; double a[N]; bool cmp(dou 阅读全文
posted @ 2022-04-22 15:23 小志61314 阅读(34) 评论(0) 推荐(0)
摘要: 题目详情 - L2-009 抢红包 (25 分) (pintia.cn) 结构体排序,23分... #include<iostream> #include<algorithm> using namespace std; const int N=1e5+10; struct mess{ double 阅读全文
posted @ 2022-04-22 11:10 小志61314 阅读(16) 评论(0) 推荐(0)
摘要: 题目详情 - L2-008 最长对称子串 (25 分) (pintia.cn) STL:21分,另外的4分超时.. #include<iostream> #include<algorithm> using namespace std; int main(){ string str; getline( 阅读全文
posted @ 2022-04-22 10:38 小志61314 阅读(59) 评论(0) 推荐(0)
摘要: 题目详情 - L2-003 月饼 (25 分) (pintia.cn) 23分,有两分段错误不知道错哪了,不想debug了... #include<iostream> #include<algorithm> using namespace std; const int N=1e5+10; struc 阅读全文
posted @ 2022-04-21 09:13 小志61314 阅读(35) 评论(0) 推荐(0)
摘要: 题目详情 - L2-001 紧急救援 (25 分) (pintia.cn) #include<iostream> #include<cstring> #include<queue> using namespace std; typedef pair<int,int> PAII; int n,m,A, 阅读全文
posted @ 2022-04-20 23:53 小志61314 阅读(39) 评论(0) 推荐(0)
摘要: 这个题本质上是flood fill 变形+记忆化搜索 有m个读入数据,每次bfs或者dfs必然会超时 就把之前已经搜过的点标记一下,然后这个算是01相邻的一个连通块,这个实质上就是求哪一块01连通块里面元素的个数 bfs #include<iostream> #include<cstring> #i 阅读全文
posted @ 2022-04-20 20:46 小志61314 阅读(52) 评论(0) 推荐(0)
摘要: Problem Detail - 【提高】小X学游泳 - 追梦算法网 也就是上下左右同一个数字的为一个连通块,看看最大的连通块有多大 其实也就是flood fill问题啦 dfs: #include<iostream> using namespace std; int n,m; const int 阅读全文
posted @ 2022-04-12 22:44 小志61314 阅读(690) 评论(0) 推荐(0)
摘要: 和全排列类似,不过不是1开始,是指定的数字开始 Problem Detail - 【递归】n个数的全排列 - 追梦算法网 #include<iostream> #include<algorithm> using namespace std; const int N=15; int a[N],p[N] 阅读全文
posted @ 2022-04-12 22:08 小志61314 阅读(57) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 14 下一页