C二级辅导-求偶数和 (C语言代码) 摘要:解题思路:可以考虑把奇数都变成零在全部相加注意事项:参考代码:#include<stdio.h> int main(){ int a,b,c=0,i,d; scanf("%d",&…… 题解列表 2019年01月21日 0 点赞 0 评论 806 浏览 评分:0.0
junmu1165:【明明的随机数】 利用数组下标,超清新哦 摘要:解题思路: 1.利用数组下标的特点,超方便。 2.就是有时候数组要很大。。。。 3.充分体现了,代码短…… 题解列表 2019年01月22日 1 点赞 0 评论 1858 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.4 (C语言代码) 摘要:解题思路:最后的答案很大,int存不下的.注意事项:long long int在内存中占八个字节,范围是-922337203685775808~922337203685775807double:%lf…… 题解列表 2019年01月22日 1 点赞 0 评论 558 浏览 评分:0.0
C语言训练-亲密数 (C语言代码) 摘要:解题思路:求解3000以内一个数的因子之和等于另一个数(与前一个数不同)可以用函数方法来处理sumbd 注意事项:三个条件是 A的因子之和等于B;B的因子之和等于A; A不…… 题解列表 2019年01月22日 0 点赞 0 评论 793 浏览 评分:0.0
蓝桥杯算法训练VIP-寂寞的数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int isJmNum(int n) { for(int i=1;i<=n;++i) { // i%10; // …… 题解列表 2019年01月22日 0 点赞 0 评论 1079 浏览 评分:0.0
蓝桥杯历届试题-回文数字 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int n;fun(int m){int a,b,c,d,e,f; for(b=1;b<=9;b++) for(c=0;c<=9;c…… 题解列表 2019年01月22日 0 点赞 0 评论 976 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.8 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>float fac(unsigned int n){ if(n==1) return 1; if(n==2) return 2; ret…… 题解列表 2019年01月22日 0 点赞 0 评论 1038 浏览 评分:0.0
C二级辅导-等差数列 (C语言代码) 摘要:解题思路:和=(首项+末项)×项数÷2 注意事项:当n=1时,该公式不适用参考代码:#include <stdio.h> #define first 2 #define walk_long …… 题解列表 2019年01月22日 1 点赞 0 评论 800 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题10.5 (C语言代码) 摘要:#include <stdio.h> int check(int a[],int n) { for(int i=0;i<n;i++) { if(a[i]) r…… 题解列表 2019年01月22日 0 点赞 0 评论 1421 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:#include <stdio.h>int check(int year){ if((year%4==0)&&(year%100!=0)|(year%400==0)) return 1; …… 题解列表 2019年01月22日 0 点赞 0 评论 1076 浏览 评分:0.0