蓝桥杯算法提高VIP-盾神与积木游戏 (C++代码) 摘要:解题思路: 贪心算法,一路贪心下去注意事项: 参考代码:#include<iostream> #include<algorithm> using namespace s…… 题解列表 2018年11月20日 1 点赞 0 评论 1124 浏览 评分:8.9
C语言程序设计教程(第三版)课后习题3.7 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void main(){char c1,c2,c3,c4,c5;c1='C',c2='h',c3=…… 题解列表 2018年11月20日 0 点赞 0 评论 506 浏览 评分:0.0
循环 (C语言代码) 摘要:/*过段时间再改吧,先保存下来(小的整数基本没毛病)*/ #include<stdio.h> #include"malloc.h" #include"math.h" int main() {…… 题解列表 2018年11月20日 0 点赞 2 评论 1976 浏览 评分:8.0
C语言程序设计教程(第三版)课后习题10.7 (C语言代码) 摘要:解题思路: 注意事项:参考代码:#include<stdio.h>#define zz 100void main(){ char *p; int i…… 题解列表 2018年11月20日 1 点赞 0 评论 621 浏览 评分:0.0
C语言训练-亲密数 (C语言代码) 摘要:解题思路:用枚举的方法遍历所有3000以内自然数注意事项:对一个数因式的处理一般都是遍历取余,这里注意两个范围,一个是判断两数是否为亲密数,遍历时第二个数的初始化应该在第一个数上加一,可以避免相等与重…… 题解列表 2018年11月20日 0 点赞 0 评论 784 浏览 评分:2.0
简单的a+b (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int a,b;while(scanf("%d%d",&a,&b))printf("%d",a+b);return 0;…… 题解列表 2018年11月20日 0 点赞 0 评论 334 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题7.4 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main () { int A[10]; int b,i,k,j ,h; for(…… 题解列表 2018年11月19日 2 点赞 0 评论 693 浏览 评分:0.0
字符排序 (C语言代码) 摘要:解题思路:注意事项:参考代码:正确的:#include<stdio.h>#include<string.h>#define N 21void pai(char s[]);int main(){ …… 题解列表 2018年11月19日 0 点赞 0 评论 842 浏览 评分:0.0
判断第几天 (C++代码) 摘要:解题思路:输入中含/,所以用string类型存储。string a存输入数据。看代码吧,不多说了,23333. 注意事项:参考代码:#include<iostream>#include<string…… 题解列表 2018年11月19日 0 点赞 0 评论 895 浏览 评分:4.7
C语言程序设计教程(第三版)课后习题8.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int f(int a,int b){ int i; i=a>b?a:b; for(;;i++) { …… 题解列表 2018年11月19日 2 点赞 0 评论 477 浏览 评分:0.0