上一页 1 2 3 4 5 6 7 8 9 ··· 24 下一页
摘要: 题目链接 题解 目录A CodeForces 1859A United We StandB CodeForces 1858A ButtonsC CodeForces 1857A Array ColoringD CodeForces 1856A Tales of a SortE CodeForces 阅读全文
posted @ 2023-09-05 14:14 HelloHeBin 阅读(325) 评论(0) 推荐(0)
摘要: ## 数据结构 - [P1102 A-B 数对](https://www.luogu.com.cn/problem/P1102) 点击查看代码 ``` #include using namespace std; const int N=2e5+10; int n,m,c,a[N],st[N],ans 阅读全文
posted @ 2023-08-23 12:05 HelloHeBin 阅读(201) 评论(0) 推荐(0)
摘要: ## 上午简单排序 - [P5143 攀爬者](https://www.luogu.com.cn/problem/P5143) 点击查看代码 ``` #include using namespace std; const int N=5e4+10; struct T{ int x,y,z; }a[N 阅读全文
posted @ 2023-08-22 11:57 HelloHeBin 阅读(89) 评论(0) 推荐(0)
摘要: ## 上午 - [P1789 【Mc生存】插火把](https://www.luogu.com.cn/problem/P1789) 点击查看代码 ``` #include using namespace std; const int N=110; bool a[N][N]; int n,m,k,x, 阅读全文
posted @ 2023-08-21 14:16 HelloHeBin 阅读(150) 评论(0) 推荐(0)
摘要: ## 上午递归,文件 - [B2064 斐波那契数列](https://www.luogu.com.cn/problem/B2064) - [P1255 数楼梯](https://www.luogu.com.cn/problem/P1255) 点击查看代码 ``` #include using na 阅读全文
posted @ 2023-08-18 13:51 HelloHeBin 阅读(154) 评论(0) 推荐(0)
摘要: ## 上午二维数组/函数 - [B2101 计算矩阵边缘元素之和](https://www.luogu.com.cn/problem/B2101) 分析:尽量对每个元素只遍历一次,如果发现是边缘元素,那么加入即可。 点击查看代码 ``` #include using namespace std; c 阅读全文
posted @ 2023-08-17 12:50 HelloHeBin 阅读(166) 评论(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 阅读(173) 评论(0) 推荐(0)
摘要: ## 上午测试讲题 - [U259234 累加累乘/accmul](https://www.luogu.com.cn/problem/U259234) 分析:直接开两个变量记录答案即可,使用for循环n次,对于s1也可以使用等差数列求和公式。 点击查看代码 ```cpp #include using 阅读全文
posted @ 2023-08-15 13:49 HelloHeBin 阅读(153) 评论(0) 推荐(0)
摘要: ### GESP C++四级样题卷 1. 在 C++中,指针变量的大小(单位:字节)是( ) A. 2 B. 4 C. 8 D. 与编译器有关 答案:D 2. 以下哪个选项能正确定义一个二维数组( ) A. int a[][]; B. char b[][4]; C. double c[3][]; D 阅读全文
posted @ 2023-06-17 16:44 HelloHeBin 阅读(387) 评论(0) 推荐(0)
摘要: ### GESP C++三级样题卷 1. 下列关于负数的原码、反码、补码的描述中,正确的是( ) A. 原码和反码互为按位取反(符号位除外),补码为反码加 1 B. 原码和反码互为按位取反(符号位除外),补码为原码加 1 C. 反码和补码互为按位取反(符号位除外),原码为反码加 1 D. 补码和原码 阅读全文
posted @ 2023-06-17 16:22 HelloHeBin 阅读(562) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 24 下一页