C语言训练-求素数问题 (C语言代码) 摘要:#include <stdio.h>int main(){ int i,j,N,flag=1; do{ scanf("%d",&N); }while(!(N>…… 题解列表 2018年02月01日 0 点赞 0 评论 1695 浏览 评分:0.0
矩阵转置 (C语言代码) 摘要:#include <stdio.h>int main(){ int i,j,k,N,s1[100][100],s2[100][100]; scanf("%d",&N); for…… 题解列表 2018年02月01日 0 点赞 0 评论 1484 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题1.6 (C语言代码) 摘要:#include <stdio.h>int main(){ int a,b,c,max1,max2; scanf("%d%d%d",&a,&b,&c); max1=a…… 题解列表 2018年02月01日 0 点赞 0 评论 1110 浏览 评分:0.0
检查一个数是否为质数 (C语言代码) 摘要:#include <stdio.h>int main(){ int i,N; scanf("%d",&N); for(i=2;i<N;i++) if(N%i==…… 题解列表 2018年02月01日 0 点赞 0 评论 1664 浏览 评分:0.0
C语言训练-计算t=1+1/2+1/3+...+1/n (C语言代码) 摘要:#include <stdio.h>int main(){ int i,n; double t=0,s=0; scanf("%d",&n); for(i=1;i<=n;…… 题解列表 2018年02月01日 0 点赞 0 评论 1360 浏览 评分:0.0
生日日数 (C语言代码) 摘要:#include <stdio.h>struct date{ int year,month,day;};int main(){ int i,n,leap; int s[2][13…… 题解列表 2018年02月01日 0 点赞 0 评论 1691 浏览 评分:0.0
蓝桥杯基础练习VIP-Huffuman树 (C语言代码) 摘要:解题思路:从小到大排,每次相加元素前移一位注意事项:排序时,数组大小每次减一参考代码:#include<iostream> #include<algorithm> using namespace …… 题解列表 2018年02月01日 0 点赞 0 评论 2039 浏览 评分:0.0
蓝桥杯算法提高VIP-多项式输出 (Java代码) 摘要:import java.util.Scanner; public class Main { /** * @param BoyHonest */ public static…… 题解列表 2018年02月01日 1 点赞 0 评论 2033 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 解题思路:1.利用do循环求出输入的整数的位数;2.代表输入数和其位数的值分别赋值两次(n,N;num,x),因为赋值以后在运算中其值会发生变化,所以要先存起来,方便最后输出;3.用头文件math.h,可以用指数函数,方便取不确定的商和模;4.由低位到高位输出用for循环, 题解列表 2018年02月01日 5 点赞 0 评论 1390 浏览 评分:0.0
求圆的面积 (C语言代码) 摘要:参考代码:#include<stdio.h> #include<math.h> #define pi acos(-1) int main() { double r,area; …… 题解列表 2018年02月01日 0 点赞 0 评论 2190 浏览 评分:0.0