[递归]母牛的故事-题解(Java代码) 摘要:import java.util.Scanner; - public class Main { public static void main(String[] args) { Sca…… 题解列表 2019年12月19日 0 点赞 0 评论 1019 浏览 评分:0.0
[编程入门]带参数宏定义练习-题解(Java代码) 摘要:其实这个题目很简单,主要在于不懂宏是什么,也是查了百度才明白 宏其实就是实参的意思,相当于需要函数调用 结果显然而知 如下: import java.util.Scanner; …… 题解列表 2019年12月19日 0 点赞 0 评论 942 浏览 评分:0.0
二级C语言-公约公倍-题解(Python代码) 摘要: #以下代码测试没问题,提交后总是提示错误50%,为什么?请指教 m,n = map(int,input().split()) if (m < n): …… 题解列表 2019年12月19日 0 点赞 5 评论 1027 浏览 评分:0.0
蓝桥杯算法提高VIP-前10名-题解(C语言代码) 摘要:## 很简单的一道排序题 ### 自定义从大到小排序 ```c int cmp ( const void *a , const void *b ) { return *(int *)…… 题解列表 2019年12月19日 0 点赞 0 评论 769 浏览 评分:0.0
素数回文-题解(C语言代码) 摘要:回文素数无非也就是一个判断回文,一个判断素数 ```cpp #include #define hh ios::sync_with_stdio(false),cin.tie(0),cout.tie…… 题解列表 2019年12月20日 0 点赞 0 评论 703 浏览 评分:0.0
一位热心的老大爷-题目分析-]错误票据-题解(C语言代码) 摘要:题目关键点: 1.正确的票据是连续的正整数 2.错误的票据是有一个数错误,导致1个断码和1个重复。且错误点不在最小值和最大值上 解题思路:两种 法1: 建立一个数组,将输入的数作为数组的…… 题解列表 2019年12月20日 0 点赞 0 评论 298 浏览 评分:0.0
The 3n + 1 problem -题解(C语言代码) 摘要:## 常规解法,只需要将数字转为Ascii码,A的为65. ```c #include int cmp(int n){ if (n==1){ printf("A"); }else…… 题解列表 2019年12月20日 0 点赞 0 评论 552 浏览 评分:0.0
蓝桥杯基础练习VIP-Huffuman树-题解(C语言代码) 摘要:## 自定义一个排序,再将读入的数构造为新数组,计算求和 ```c #include int cmp ( const void *a , const void *b ) { ret…… 题解列表 2019年12月20日 0 点赞 0 评论 613 浏览 评分:0.0
猴子吃桃的问题-题解(C语言代码)正向思维。 摘要:```c #include #include int main() { int n, sum; double i, j=-1, k; scanf("%d", &n); …… 题解列表 2019年12月20日 0 点赞 0 评论 795 浏览 评分:0.0
蓝桥杯基础练习VIP-分解质因数-题解(C语言代码) 摘要:## 先筛出所有素数,然后再分解。 ```c #include int cmp(int n){ int i; printf("%d=",n);//输出前面的 for(i=2;i…… 题解列表 2019年12月20日 0 点赞 0 评论 797 浏览 评分:0.0