题解 2836: 数组逆序重放 摘要: #include using namespace std; const int N = 2e6; int a[N]; int i; int m…… 题解列表 2023年11月27日 0 点赞 0 评论 352 浏览 评分:0.0
3000: 交换值 摘要:```cpp #include using namespace std; int main() { int a, b; cin >> a >> b; int temp =…… 题解列表 2023年11月27日 0 点赞 0 评论 420 浏览 评分:0.0
纪念品分组 较为简单 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<algorithm>using namespace std;int a[31111];int main(){ …… 题解列表 2023年11月27日 0 点赞 0 评论 324 浏览 评分:0.0
整型与布尔型的转换 摘要:解题思路:无注意事项:不要抄袭,会遭报应的。参考代码:#includausing nanespace sbd;ibt maia(){ ibt a; cia>>b; caut<<(ao…… 题解列表 2023年11月26日 0 点赞 0 评论 426 浏览 评分:9.9
1049: [编程入门]结构体之时间设计 摘要:题目解读:这道题就是给我们日期,让我们通过程序计算出该日期是这一年的第几天。解题思路及代码: 首先,我们要定义用于存储年,月,日的变量。在这里有两个方法,第一种如题目名,用定义结构体的方法…… 题解列表 2023年11月26日 0 点赞 0 评论 496 浏览 评分:9.9
2754: 其他基本数据类型存储空间大小 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ cout <<sizeof(bool)<<" "<<sizeo…… 题解列表 2023年11月26日 0 点赞 0 评论 514 浏览 评分:9.9
编写题解 2749: Hello, World! 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ cout<<"Hello, World!";}…… 题解列表 2023年11月26日 0 点赞 0 评论 286 浏览 评分:0.0
2753: 浮点型数据类型存储空间大小 摘要:解题思路:使用 sizeof 函数注意事项:请自由参考参考代码:#include<bits/stdc++.h>using namespace std;int main(){ cout<<sizeo…… 题解列表 2023年11月26日 0 点赞 0 评论 344 浏览 评分:9.9
2752 整型数据类型存储空间大小(C++) 摘要:解题思路:使用sizeof 函数注意事项:无参考代码:#include<bits/stdc++.h>using namespace std;int main(){ cout<<sizeof(int…… 题解列表 2023年11月26日 0 点赞 0 评论 503 浏览 评分:9.9
题目 3034: 自然数的拆分 摘要:算法介绍: 本题使用的算法为深度优先搜索算法(Depth-First-Search,DFS),该算法所遵循的策略如同名字一样,讲究一个“深”字,就是尽可能深的去搜锁所有的节点,直到把所有…… 题解列表 2023年11月26日 0 点赞 0 评论 700 浏览 评分:7.3