C语言程序设计教程(第三版)课后习题8.7 (C语言代码) 摘要:#include <stdio.h> #include <string.h> int main() { char str[100]; int i; gets(str); for(…… 题解列表 2017年12月02日 2 点赞 0 评论 960 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.6 (C语言代码) 摘要:#include <stdio.h> #include <string.h> int main() { char str1[100],str2[100]; gets(str1); g…… 题解列表 2017年12月02日 1 点赞 0 评论 715 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.5 (C语言代码) 摘要:#include <stdio.h> #include <string.h> int main() { char str[100],temp; int i,j; gets(str);…… 题解列表 2017年12月02日 1 点赞 0 评论 1078 浏览 评分:0.0
优质题解 Manchester- 采药(0 1背包) 摘要:解题思路:这个问题贪心算法是无法求出最优解的,因为可能还会剩下时间,但是一个剩下的时间又不够采药;所以这个题的原型就是01背包,动态规划求最优解;下面先解释第一张图:(可采药时间为10,五种药A B…… 题解列表 2017年12月02日 59 点赞 25 评论 7447 浏览 评分:9.7
C语言程序设计教程(第三版)课后习题7.4 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(void){ int i, j, x; int a[9],b[9]; //输入数组 printf("请任意输入九个不相…… 题解列表 2017年12月02日 0 点赞 0 评论 994 浏览 评分:0.0
IP判断 (C语言代码) 摘要:解题思路:分别判断每一段是否合法即可注意事项:1的ASCII码值是49参考代码:#include <stdio.h> #include <ctype.h>//使用isdigit函数 int mai…… 题解列表 2017年12月02日 1 点赞 0 评论 737 浏览 评分:0.0
数列排序 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(void){ int i, n, l, x, min; int num[20]; scanf("%d", &n); …… 题解列表 2017年12月01日 0 点赞 0 评论 826 浏览 评分:0.0
哥德巴赫曾猜测 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(void){ int i, j, k, n, count, count1; int num[10000]; scan…… 题解列表 2017年12月01日 0 点赞 0 评论 732 浏览 评分:0.0
青年歌手大奖赛_评委会打分 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n, nums[100], i, min, max, cheak1 = 0, cheak2 = 0; …… 题解列表 2017年12月01日 0 点赞 0 评论 1123 浏览 评分:0.0
逆反的01串 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(void){ int i; char ch[200]; while (scanf("%s", ch) == 1) {…… 题解列表 2017年12月01日 0 点赞 0 评论 979 浏览 评分:0.0