1000:简单而又容易出错的题 摘要:解题思路:本题很简单,但是注意此题是多组测试数据,即需要不停的接收系统的测试输入,你都可以计算结果并输出,像本人第一次输出只写了一次简单的a+b,全错QwQ:#include<cstdio>#incl…… 题解列表 2022年03月21日 0 点赞 1 评论 429 浏览 评分:8.0
蓝桥杯算法训练VIP-幂方分解 不断的将n拆分成更小的数,前后做法一致,只是规模变小,容易联想到递归```cpp#include#includeusingnamespacestd;intFindBinaryTop(intn){//返回二进制表示中最高位1的位置inti;for(i=31;i>=0;i--){//二进制向右循环移动i位 题解列表 2022年03月21日 0 点赞 0 评论 714 浏览 评分:9.9
1030 二维数组的转置 C++ 解题思路:(1)在主函数中定义二维数组a[i][j],用for循环输入。(2)在自定义的转置函数中用for循环输出a[j][i]。(3)在主函数中调用自定义的置换函数。注意事项:输入a[i][j],输出a[j][i]。参考代码:#includeusingnamespacestd;i 题解列表 2022年03月21日 0 点赞 0 评论 902 浏览 评分:9.9
编写题解 1137: C语言训练-求函数值 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string.h>#include<ctype.h>#include<math.h>using namespace …… 题解列表 2022年03月21日 0 点赞 0 评论 469 浏览 评分:0.0
编写题解 1136: C语言训练-求具有abcd=(ab+cd)2性质的四位数 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string.h>#include<ctype.h>#include<math.h>using namespace …… 题解列表 2022年03月21日 0 点赞 0 评论 682 浏览 评分:0.0
编写题解 1135: C语言训练-求s=a+aa+aaa+aaaa+aa...a的值 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string.h>#include<ctype.h>using namespace std;int main(){ …… 题解列表 2022年03月21日 0 点赞 0 评论 911 浏览 评分:0.0
编写题解 1133: C语言训练-求1+2!+3!+...+N!的和 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string.h>#include<ctype.h>using namespace std;int main(){ …… 题解列表 2022年03月21日 0 点赞 0 评论 613 浏览 评分:0.0
编写题解 1130: C语言训练-数字母 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string.h>#include<ctype.h>using namespace std;int main(){ …… 题解列表 2022年03月21日 0 点赞 0 评论 585 浏览 评分:0.0
编写题解 1129: C语言训练-排序问题<2> 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a[10]; for(int i=0;i<10;i…… 题解列表 2022年03月21日 0 点赞 0 评论 438 浏览 评分:0.0
编写题解 1128: C语言训练-排序问题<1> 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a[4]; for(int i=0;i<4;i++…… 题解列表 2022年03月21日 0 点赞 0 评论 428 浏览 评分:0.0