随笔分类 -  蓝桥杯

摘要:###洛谷题面 https://www.luogu.com.cn/problem/P1775 ###AcWing题面 https://www.acwing.com/problem/content/description/284/ #include<bits/stdc++.h> using names 阅读全文
posted @ 2023-03-29 16:05 Vijurria 阅读(125) 评论(0) 推荐(0) 编辑
摘要:https://www.luogu.com.cn/problem/P8742 输入 #1复制 3 1 4 6 输出 #1复制 10 #include<bits/stdc++.h> using namespace std; typedef long long LL; typedef pair<LL,L 阅读全文
posted @ 2023-03-28 21:06 Vijurria 阅读(86) 评论(0) 推荐(0) 编辑
摘要:https://www.acwing.com/problem/content/1240/ ###1238. 日志统计 输入样例: 7 10 2 0 1 0 10 10 10 10 1 9 1 100 3 100 3 输出样例: 1 3 首先注意数据范围,0-1e5的数据范围,两层循环的话肯定是会爆时 阅读全文
posted @ 2023-02-27 19:03 Vijurria 阅读(18) 评论(0) 推荐(0) 编辑
摘要:强推,这篇博客写得也太好了!!! https://www.acwing.com/solution/content/137064/ #include<bits/stdc++.h> using namespace std; typedef long long LL; typedef pair<LL,LL 阅读全文
posted @ 2022-10-13 09:30 Vijurria 阅读(28) 评论(0) 推荐(0) 编辑
摘要:https://www.acwing.com/problem/content/description/1229/ 题目大意: 有K个小朋友吃巧克力,每个人都想要正方形的巧克力 一共有n块奇形怪状的巧克力 问问可以切出来的最大的边长是多少? 输入样例: 2 10 6 5 5 6 输出样例: 2 太久没 阅读全文
posted @ 2022-09-16 21:26 Vijurria 阅读(21) 评论(0) 推荐(0) 编辑