1778: 罗列完美数 摘要:解题思路:1.先用一个循环定义一个j依次表示1、2、3……n; 2.在上一个循环里再写一个循环判断j的因数和s; 3.在判断j是否等于s,在输出。注意事项:记得要重置s,输出要换行。参考代码:#i…… 题解列表 2023年01月04日 0 点赞 0 评论 412 浏览 评分:9.9
蓝桥杯历届试题-回文数字 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,t,i,flag=1; scanf("%d",&n); for(i=10000;i<1000000;…… 题解列表 2023年01月04日 0 点赞 0 评论 626 浏览 评分:9.9
自定义函数之字符串反转(C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void fun(char str[]){ char* str1 = str; char* str2…… 题解列表 2023年01月04日 0 点赞 0 评论 364 浏览 评分:9.9
位运算 26行 摘要:解题思路:x&-x返回当前x在二进制表示时最右侧的1构成的数如(9)&(-9)=(00000000 00001001)&(11111111 11110111)=00000000 00000001=1(…… 题解列表 2023年01月05日 1 点赞 0 评论 467 浏览 评分:9.9
3041: 最大子矩阵 摘要:解题思路:要就复制吧,爱就点赞吧注意事项:参考代码:#include<bits/stdc++.h> using namespace std; long long x,n,a[105][105],s…… 题解列表 2023年01月05日 0 点赞 0 评论 610 浏览 评分:9.9
3041: 最大子矩阵 摘要:解题思路:1.s[][]为和第二个循环为来赋s的初值。 2.第三个循环来算x与mx判断哪个大 3.输出注意事项:要定义mx和x i2,i1,j1,j2 不要弄混参考代码:#include<bit…… 题解列表 2023年01月05日 0 点赞 0 评论 538 浏览 评分:9.9
3042: 金银岛 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; struct a{ double mi,vi,zi; }b[10000…… 题解列表 2023年01月05日 0 点赞 0 评论 797 浏览 评分:9.9
2998: 电影票(极为简单) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int a; cin>>a; …… 题解列表 2023年01月05日 0 点赞 0 评论 1002 浏览 评分:9.9
编写题解 2239: 蓝桥杯算法训练-动态数组使用 摘要:解题思路:注意事项:参考代码:#include <malloc.h> //所需的头文件 #include <stdio.h> int main() { int *a, n; int…… 题解列表 2023年01月05日 0 点赞 0 评论 361 浏览 评分:9.9
1031: [编程入门]自定义函数之字符串反转 【c++】 摘要:解题思路:用string 类型来解决 并用下标访问 循环逆序打出字符串注意事项: 为了方便没有定义一个函数 就写了主函数参考代码:#include<iostream>#include<string>u…… 题解列表 2023年01月05日 0 点赞 0 评论 788 浏览 评分:9.9