【计算两点间的距离】 (C语言代码) 摘要:#include <stdio.h>#include <math.h>int main(){ double x1,y1,x2,y2,dx,dy; while(scanf("%lf %lf %lf %l…… 题解列表 2017年11月08日 0 点赞 0 评论 1095 浏览 评分:0.0
三角形 (C语言代码) 摘要:#include <stdio.h> //动态规划 #define MAX 101 int maxSum[MAX][MAX]; int m; int D[MAX][MAX]; in…… 题解列表 2017年11月08日 0 点赞 0 评论 972 浏览 评分:0.0
半数集问题 (C语言代码) 摘要:解题思路:_ueditor_page_break_tag_#include <stdio.h> //递归动态规划 int Sum[1000]; int half(int ); int…… 题解列表 2017年11月08日 2 点赞 0 评论 1228 浏览 评分:2.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,d,e,g,h,f,i; scanf("%d",&a); if(a>=10000&&a<=9…… 题解列表 2017年11月08日 0 点赞 0 评论 967 浏览 评分:0.0
C二级辅导-公约公倍 (C语言代码) 摘要:解题思路:先求最大公约数,再利用最小公倍数等于两数的乘积除以最大公约数;注意事项:参考代码:#include<stdio.h>int main(){ int a,b,temp,r,mul; …… 题解列表 2017年11月08日 1 点赞 0 评论 907 浏览 评分:0.0
检查金币 (C语言代码) 摘要:#include <stdio.h> #include <math.h> #define B 265716 int main() { int weight,value,golden[10]…… 题解列表 2017年11月08日 1 点赞 0 评论 1741 浏览 评分:9.9
逆反的01串 (C语言代码) 摘要:#include <stdio.h> int main() { char nums[201]; while (gets(nums)!=NULL) { int i=0; wh…… 题解列表 2017年11月08日 3 点赞 0 评论 1799 浏览 评分:9.3
三进制小数 (C语言代码) 摘要:#include <stdio.h> int main() { int a,b,i,three[11]; double f; while (scanf("%d/%d",&a,&b)!=…… 题解列表 2017年11月08日 0 点赞 0 评论 1207 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b[5]; int n=0; scanf("%d",&a); while(a!=0) { b[n…… 题解列表 2017年11月08日 5 点赞 1 评论 556 浏览 评分:0.0
字符串的修改 (C语言代码) 摘要:解题思路运用动态规划的思想: d[i][j] = 表示第一个字符串str1的前i个字符转换到第二个字符串str2的前j个字符所需要的最小的转换步骤,则当str1[i] == str2[j]时, d[i…… 题解列表 2017年11月08日 1 点赞 1 评论 1433 浏览 评分:0.0