随笔分类 -  笔记,作业,代码,记录

摘要:## 上午二维数组/函数 - [B2101 计算矩阵边缘元素之和](https://www.luogu.com.cn/problem/B2101) 分析:尽量对每个元素只遍历一次,如果发现是边缘元素,那么加入即可。 点击查看代码 ``` #include using namespace std; c 阅读全文
posted @ 2023-08-17 12:50 HelloHeBin 阅读(173) 评论(0) 推荐(0)
摘要:## 上午/一维数组排序 - [P5723 【深基4.例13】质数口袋](https://www.luogu.com.cn/problem/P5723) 点击查看代码 ``` #include using namespace std; int main() { int l,s=0, p=0; cin 阅读全文
posted @ 2023-08-16 13:20 HelloHeBin 阅读(178) 评论(0) 推荐(0)
摘要:## 上午测试讲题 - [U259234 累加累乘/accmul](https://www.luogu.com.cn/problem/U259234) 分析:直接开两个变量记录答案即可,使用for循环n次,对于s1也可以使用等差数列求和公式。 点击查看代码 ```cpp #include using 阅读全文
posted @ 2023-08-15 13:49 HelloHeBin 阅读(160) 评论(0) 推荐(0)