[编程入门]自定义函数之数字后移 (C语言代码) 摘要:解题思路:利用动态分配内存,int *a=(int*)malloc(sizeof(int)*n);可以很好的定义数组大小;注意事项:记得添加头文件#include<stdlib.h>参考代码:#inc…… 题解列表 2019年04月26日 0 点赞 0 评论 1546 浏览 评分:0.0
汽水瓶 (C语言代码) 摘要:解题思路:此题最好建立一个数学模型,说白了就是列个表看出它的规律,剩下的就好解的多了。你拥有的空瓶能够换得的总瓶数剩下的空瓶101210311420521630731840......... …… 题解列表 2019年04月26日 2 点赞 0 评论 1438 浏览 评分:6.0
迷宫问题 (C语言代码)bfs 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<queue> #include<cstring> using namespace std; const i…… 题解列表 2019年04月26日 0 点赞 0 评论 1527 浏览 评分:0.0
蓝桥杯算法提高VIP-排列数 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;int a[10]={0,1,2,3,4,5,6,7,8…… 题解列表 2019年04月26日 0 点赞 0 评论 690 浏览 评分:2.0
C语言训练-阶乘和数* (C语言代码) 摘要:解题思路: (1)在1-100000里面循环找所求数:for (int i=1; i<100000 ; i++) (2)每个数从低位数到高位数求阶层,设sum求个位数阶层…… 题解列表 2019年04月26日 0 点赞 0 评论 662 浏览 评分:0.0
[编程入门]自定义函数之整数处理 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void function(int *a){ int i,j,min=a[0],max=a[0],t; for(i=0;i<10;i++…… 题解列表 2019年04月26日 0 点赞 0 评论 617 浏览 评分:0.0
[编程入门]结构体之时间设计 (C语言代码) 摘要:解题思路:利用数组来保存月份的天数注意事项:闰年的定义:if(n%4==0 && n%100!=0 ||n%400==0)参考代码:#include<stdio.h>int main(){ int i…… 题解列表 2019年04月26日 0 点赞 0 评论 749 浏览 评分:0.0
C二级辅导-同因查找 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,a,b,c; a=b=c=0; for(i=10;i<=1000;i++) { if( (i%2=…… 题解列表 2019年04月26日 0 点赞 0 评论 501 浏览 评分:0.0
不就是这样么? (C语言代码) 摘要:解题思路:不就是这样嘛emmm注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i; char ch; while((ch = …… 题解列表 2019年04月26日 0 点赞 0 评论 1180 浏览 评分:4.0
C二级辅导-分段函数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x; float y; scanf("%d",&x); if(x<1) y=x; else if(x>=…… 题解列表 2019年04月26日 0 点赞 0 评论 1039 浏览 评分:9.0