C语言程序设计教程(第三版)课后习题8.3 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int Is_prime(int n) { for(int i=2;i*i<n;i++) if(n%i==0) …… 题解列表 2018年04月15日 0 点赞 1 评论 729 浏览 评分:9.0
蓝桥杯算法训练VIP-最大体积 (C语言代码)----------------C语言——菜鸟级 摘要:解题思路: gcd + 动态规划(完全背包)注意事项: 参考代码: #include<stdio.h> #include<string.h> int gcd(int a,int b) { …… 题解列表 2018年05月16日 5 点赞 0 评论 2278 浏览 评分:9.0
蓝桥杯历届试题-最大子阵 (C语言代码)---------------C语言——菜鸟级 摘要:解题思路: 行的前缀和(对行区间求和) + 最大子段原理 (对列区间求和)注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { …… 题解列表 2018年05月16日 3 点赞 6 评论 1608 浏览 评分:9.0
蓝桥杯算法提高VIP-3000米排名预测 (C语言代码)--------------C语言——菜鸟级 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int c[12][20];//存储 围观者的预测 long int n,m,k=0; int bj[12]={0};/…… 题解列表 2018年05月16日 4 点赞 1 评论 2637 浏览 评分:9.0
谁是你的潜在朋友 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; const int M=200+5; int a[M]={0}; int main…… 题解列表 2018年04月18日 1 点赞 1 评论 968 浏览 评分:9.0
优质题解 C语言程序设计教程(第三版)课后习题6.6 (C++代码) 摘要:解题思路:利用循环遍历所有三位数,每遍历到一个数,就通过再通过循环分离每一位,每分离出一位用pow函数求出其3次方,并储存和。注意事项:pow函数的头文件是cmath(c++)或 math.h(c),…… 题解列表 2018年04月22日 2 点赞 2 评论 7589 浏览 评分:9.0
C语言程序设计教程(第三版)课后习题9.2 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define M(x,y) n = x%y int main() { int x,y,n; scanf("%d%d",…… 题解列表 2018年05月01日 0 点赞 0 评论 1614 浏览 评分:9.0
C语言程序设计教程(第三版)课后习题3.7 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <string.h>using namespace std;int main(){ char a[100]; ci…… 题解列表 2018年05月11日 0 点赞 0 评论 1302 浏览 评分:9.0
优质题解 Manchester-弗洛伊德最短路径算法 摘要:解题思路: 该算法需要知道其求解过程即可轻松写出代码,将下面的求解过程手动写一遍就可清晰知道代码执行过程,以下path[]用来记录两节点间的最短路径,对于这道题可以不管。注意事项:1):在下面的代码…… 题解列表 2018年05月21日 7 点赞 0 评论 3138 浏览 评分:9.0
C语言考试练习题_排列 (C语言代码)顺序不同就出错,这点不好 摘要:#include<stdio.h> int main() { int i, j, k, a[4]; for(i = 0;i < 4;i++) scanf("%…… 题解列表 2018年05月23日 3 点赞 2 评论 1583 浏览 评分:9.0