最简便易懂 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int gcd(int a,int b) { if(b==0) return a; return gcd(…… 题解列表 2022年10月13日 0 点赞 0 评论 572 浏览 评分:9.9
蓝桥杯算法提高VIP-01背包(java) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class P1924 { public static void main(String[] …… 题解列表 2022年10月13日 0 点赞 0 评论 667 浏览 评分:9.9
C语言 完数的判读 摘要:解题思路:见注释注意事项:参考代码:#include <stdio.h>int main(){ int N=0,num=6;//从最小的完数num=6开始判断 scanf("%d", …… 题解列表 2022年10月13日 0 点赞 0 评论 580 浏览 评分:9.9
1123:最简真分数序列,直接了当菜的一批 摘要:解题思路:分子除以因子不等于0即可注意事项:参考代码:#include<stdio.h>int main(){ int a=40,i,b; for(i=1;i<40;i++) …… 题解列表 2022年10月13日 0 点赞 0 评论 638 浏览 评分:9.9
字符串统计,转为数字比较 摘要:解题思路:注意事项:参考代码:#include<string.h>int main(){ int a = 0; int j = 0; int k = 0; int m = 0; int b = 0; …… 题解列表 2022年10月13日 0 点赞 0 评论 546 浏览 评分:9.9
偶数求和,偶数组与奇数组分开求平均值 ```cpp#include#includeusingnamespacestd;//printvectorfortestvoidprintvector(vector&v){for(vector::iteratorit=v.begin();it!=v.end();it++){cout 题解列表 2022年10月13日 0 点赞 0 评论 747 浏览 评分:9.9
蓝桥杯算法提高VIP-数字黑洞 摘要:解题思路:注意事项:参考代码: import java.util.Arrays; import java.util.Scanner; public class 数字黑洞 { publ…… 题解列表 2022年10月14日 0 点赞 0 评论 713 浏览 评分:9.9
蓝桥杯算法提高VIP-模拟计算器 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { int a,b,sum; char c; scanf("%d %d %c",&a,&b,&c); s…… 题解列表 2022年10月14日 0 点赞 0 评论 921 浏览 评分:9.9
2225: 蓝桥杯算法训练-出现次数最多的整数(简写)数组解决 摘要:解题思路:因为我们已经知道了输入的最大个数 => 100 反正也不大 new个数组 把我们的值放进去就好了,然后遍历这个数组,因为他是从小到达排序的,有顺序的,所以相同的数肯定是在一块的,我们只需要加…… 题解列表 2022年10月14日 0 点赞 0 评论 657 浏览 评分:9.9
简单循环解决 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,d,e,f; //分别为千位,百位,十位,个位。 千百位,十个位 …… 题解列表 2022年10月14日 0 点赞 0 评论 870 浏览 评分:9.9