链表(帮你复习链表)解题 摘要:解题思路:利用链表进行解题,我在进行找最大的时候用的时单链表,因为循环链表效率更高一些,单是我还不熟悉链表,所以用的单链表,亲们可以是这采用循环链表注意事项:在用链表的时候我们总习惯free(p),在…… 题解列表 2019年01月05日 0 点赞 0 评论 1403 浏览 评分:0.0
蓝桥杯算法提高VIP-聪明的美食家 (C++代码)(最长不降序序列) 摘要:#include <iostream> #include <stdio.h> #include <map> #include <vector> using namespace std; in…… 题解列表 2018年08月29日 1 点赞 0 评论 1273 浏览 评分:0.0
蓝桥杯2013年第四届真题-大臣的旅费 (C++代码) 摘要: 树的直径 参考代码:#include<bits/stdc++.h> typedef long long LL; using namespace std; const i…… 题解列表 2018年08月30日 0 点赞 0 评论 1478 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.10 (C++代码) 摘要:解题思路:逆向思维:不管N是多少,最后一天的桃子数都是固定为1,所以往前倒推N-1 N-2 N-3.........1天吃的桃子数注意事项:参考代码:#include <iostream> usin…… 题解列表 2018年08月31日 0 点赞 0 评论 835 浏览 评分:0.0
C二级辅导-公约公倍 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,n,i; scanf("%d%d",&m,&n); for(i=m>n?m:n;i>0;i--) {…… 题解列表 2018年08月31日 0 点赞 0 评论 543 浏览 评分:0.0
简单的a+b (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int a,b,c;c=a+b;printf("%d\n",c);return 0;}…… 题解列表 2018年08月31日 0 点赞 0 评论 659 浏览 评分:0.0
2004年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ char a[20]; int i; for(i=0;i<10;i++) { …… 题解列表 2018年08月31日 0 点赞 0 评论 1036 浏览 评分:0.0
2005年春浙江省计算机等级考试二级C 编程题(3) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#define N 7int main(){ char a[N][N]; int n,i,j,e,r; …… 题解列表 2018年08月31日 0 点赞 0 评论 579 浏览 评分:0.0
弟弟的作业 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>int main(){ char b,e[10]; int a,c,count=0,…… 题解列表 2018年08月31日 0 点赞 0 评论 936 浏览 评分:0.0
数据结构-Big Bang (C语言代码) 摘要:解题思路:这道题其实考察就是顺序表的问题 只要会字符串匹配就行了。注意strcpy(a1,a2);a1和a2必须保证有一个是变量不能是常量。return 0;这个得加上。参考代码:#include<…… 题解列表 2018年08月31日 0 点赞 0 评论 1550 浏览 评分:0.0