1070: 二级C语言-成绩归类 摘要:解题思路:1. 首先,定义了一个包含100个整数的数组s,以及三个计数器a、b和c,分别用于计算分数大于等于85、在60到84之间以及小于60的分数的数量。2. 然后,使用do-while循环从用户输…… 题解列表 2024年05月03日 0 点赞 0 评论 233 浏览 评分:0.0
题解 1019: [编程入门]自由下落的距离计算 有个小坑 摘要:解题思路:注意事项:第一次下落距离为 m,第二次距离为 m + 高度 * 4米;参考代码:#include<iostream>using namespace std;int main(){ i…… 题解列表 2024年05月03日 0 点赞 0 评论 197 浏览 评分:0.0
C++训练-数字母 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;void test01(){ char a; int count =0; w…… 题解列表 2024年05月03日 0 点赞 0 评论 154 浏览 评分:0.0
c++超级简单的递归来一起看看吧! 摘要:解题思路:注意事项:如果n ==1或者2时,那么结果显然都是1,如果是大于2的话结果就是n-1位加上n-2位的数字这样递归就形成了参考代码:#include<iostream>using namesp…… 题解列表 2024年05月03日 0 点赞 0 评论 145 浏览 评分:0.0
十行直接解决 摘要:解题思路:我觉的不必用数组,因为每次数字只用一次,不需要存储起来,我们只需要每次与输入的那个数比较哪个大然后记录下来,然后输出就完事这个max我直接开始取一个超级小的负数,暴力拿下注意事项:参考代码:…… 题解列表 2024年05月03日 0 点赞 0 评论 243 浏览 评分:0.0
开发区第四小学3年级某某班郑**解决二级C语言-阶乘公式求值 摘要:解题思路和注意事项:这个数列是由1/n!(n的阶乘)组成,其中n从1到用户输入的整数s。具体来说,程序首先定义了一个名为fact的函数,该函数接受一个整数n作为参数,并返回n的阶乘。然后在main函数…… 题解列表 2024年05月03日 0 点赞 0 评论 221 浏览 评分:0.0
1024: [编程入门]矩阵对角线求和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N=1e3;ll a…… 题解列表 2024年05月04日 0 点赞 0 评论 141 浏览 评分:0.0
题解 1024: [编程入门]矩阵对角线求和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e3;ll a[…… 题解列表 2024年05月04日 0 点赞 0 评论 150 浏览 评分:0.0
题解 2878: 计算矩阵边缘元素之和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e3;ll a[…… 题解列表 2024年05月04日 0 点赞 0 评论 103 浏览 评分:0.0
鬼知道我写了多少遍 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N=1e3;ll a…… 题解列表 2024年05月04日 0 点赞 0 评论 134 浏览 评分:0.0