编写题解 2777: 计算2的幂 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<math.h> using namespace std; int main() { long l…… 题解列表 2022年09月02日 0 点赞 0 评论 490 浏览 评分:0.0
编写题解 2778: 判断数正负 摘要:解题思路:注意事项:参考代码:C++代码#include<iostream> using namespace std; int main() { int a; cin>>a;…… 题解列表 2022年09月02日 0 点赞 0 评论 1386 浏览 评分:9.9
二级C语言-求偶数和(C++版) 摘要:解题思路:第一步。先输入n的值,(根据题意知:n为多少,则需要输入多少个整数,这一点一定不要搞混,做对一道题的前提是要读懂题目是要我们干什么。)第二步。利用for循环依次输入n个整数第三步。输入一个整…… 题解列表 2022年09月01日 0 点赞 0 评论 589 浏览 评分:6.0
编写题解 2591: 蓝桥杯2020年第十一届省赛真题-成绩统计 摘要:解题思路:注意事项:参考代码:#include<iostream> #include <bits/stdc++.h> using namespace std; int main() { …… 题解列表 2022年08月31日 0 点赞 0 评论 573 浏览 评分:0.0
编写题解 2620: 蓝桥杯2021年第十二届国赛真题-大写 摘要:解题思路:注意事项:参考代码:#include<iostream> #include <bits/stdc++.h> using namespace std; int main() { …… 题解列表 2022年08月31日 0 点赞 0 评论 470 浏览 评分:0.0
2603,利用set容器的特性快速解决 摘要:解题思路:SET容器在插入时会自动排序,重复的内容只存储一个,容器中不允许插入重复的值。size 返回容器中个数insert 插入元素erase 删除元素clear 清空容器中的元素find…… 题解列表 2022年08月31日 0 点赞 0 评论 530 浏览 评分:6.0
李白打酒加强版动态规划 摘要:分析:这是一道动态规划题,设f[i][j][k]表示走到了第i个位置,遇到了j个花,还剩k斗酒的合法方案数. 初始化很简单就是f[0][0][2]=1,因为一开始酒的数量是2 假如共遇到店…… 题解列表 2022年08月31日 0 点赞 5 评论 876 浏览 评分:9.6
reverse函数解 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>#include<algorithm>using namespace std;int main(){ …… 题解列表 2022年08月31日 0 点赞 0 评论 472 浏览 评分:0.0
1098: 陶陶摘苹果 摘要:```cpp #include using namespace std; int main() { int a[10],n,sum=0; for(int i=0;i>a[i…… 题解列表 2022年08月31日 0 点赞 0 评论 447 浏览 评分:9.9
1097: 蛇行矩阵 摘要:```cpp #include using namespace std; int main() { int x,cnt=1,mat[100][100]; for(int j…… 题解列表 2022年08月31日 0 点赞 0 评论 369 浏览 评分:9.9