去掉双斜杠注释 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char s[500]; int i,j,k,flag; while(get…… 题解列表 2018年02月10日 0 点赞 0 评论 997 浏览 评分:0.0
字符排列问题 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int n,sum;char s[21];int b[21];void dfs(int k){ int i,j; if(k>n) { …… 题解列表 2018年02月10日 1 点赞 0 评论 1276 浏览 评分:0.0
数列排序 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j; int a[9],t; scanf("%d",&n); while(n--) { t=0…… 题解列表 2018年02月10日 0 点赞 0 评论 1215 浏览 评分:0.0
日期排序 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct p{ int a,b,c;}s[1000],t;int main(){ char ss[20]; int i,j,k,…… 题解列表 2018年02月10日 0 点赞 0 评论 1277 浏览 评分:0.0
蓝桥杯历届试题-兰顿蚂蚁 (C语言代码) 摘要:解题思路:将移动规则自定义成一个函数,再进行k次循环即可。注意事项:参考代码:#include<stdio.h> int a[102][102]; void go(int *x,int *y,ch…… 题解列表 2018年02月10日 1 点赞 0 评论 1074 浏览 评分:0.0
字符串的输入输出处理 (C语言代码) 摘要:解题思路:前N行原样输出即可,后面的字符可用scanf("%s",a)来自动切割字符串(因为scanf遇到空格键自动结束输入),然后输出注意事项:注意格式!每输出一行要再空一行!参考代码:#inclu…… 题解列表 2018年02月10日 1 点赞 0 评论 1268 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题4.9 (C语言代码) 摘要:解题思路:要用公式推就可以了。注意事项:要加c=参考代码:#include<stdio.h>int main(){ float a,b; scanf("%f",&a); b=5*(a…… 题解列表 2018年02月11日 0 点赞 0 评论 773 浏览 评分:0.0
蓝桥杯基础练习VIP-Huffuman树 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<queue> #include<cstdio> #include<iostream> using namespace std; …… 题解列表 2018年02月11日 1 点赞 0 评论 872 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.3 (C语言代码) 摘要:解题思路:采用了for循环进行累加,这里我用了一个pow函数所以省去了很多麻烦注意事项:注意这里的数据类型要声明为double类型,一开始我用的是int类型,写完之后我在网站上通过了。但在自己电脑的编…… 题解列表 2018年02月11日 0 点赞 0 评论 1119 浏览 评分:0.0
P1005 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int a[1001];int main(){ int t,m; int i,j,k,l; int sj[101],jz[101]; s…… 题解列表 2018年02月11日 1 点赞 0 评论 1152 浏览 评分:0.0